Skip to content

Commit

Permalink
Detect V-USB by MCU for now
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and skullydazed committed Mar 8, 2020
1 parent d40ff34 commit 01f6778
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion update_kb_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,11 @@ def avr_processor_rules(keyboard_info, rules_mk):
keyboard_info['bootloader'] = rules_mk['BOOTLOADER'] if 'BOOTLOADER' in rules_mk else 'atmel-dfu'
keyboard_info['platform'] = rules_mk['ARCH'] if 'ARCH' in rules_mk else 'unknown'
keyboard_info['processor'] = rules_mk['MCU'] if 'MCU' in rules_mk else 'unknown'
if rules_mk.get('PROTOCOL') == 'VUSB':

# These are the only two MCUs which need V-USB at the moment.
# Eventually we should detect the protocol by looking at PROTOCOL inherited from mcu_selection.mk:
#if rules_mk['PROTOCOL'] == 'VUSB':
if rules_mk.get('MCU') in ['atmega32a', 'atmega328p']:
keyboard_info['protocol'] = 'V-USB'
else:
keyboard_info['protocol'] = 'LUFA'
Expand Down

0 comments on commit 01f6778

Please sign in to comment.