Fix for USB-based boards with no particular pinout

This commit is contained in:
Phil Howard 2016-06-26 22:05:41 +01:00
parent b439db23ab
commit 92c963f30f
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ def render_pin(pin_num, selected_url, overlay=None):
if 'bcm' in pin['scheme']:
bcm_pin = 'bcm' + str(pin['scheme']['bcm'])
if overlay is not None and (
if overlay is not None and 'pin' in overlay and (
pin_num in overlay['pin'] or str(pin_num) in overlay['pin'] or bcm_pin in overlay['pin']):
if pin_num in overlay['pin']: