HAL_ChibiOS: fixed pincount for F7

This commit is contained in:
Andrew Tridgell 2018-05-29 20:53:08 +10:00
parent 876899c48d
commit 4ad757b4d1
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ def get_mcu_lib(mcu):
def setup_mcu_type_defaults():
'''setup defaults for given mcu type'''
global pincount
lib = get_mcu_lib(mcu_type)
if hasattr(lib, 'pincount'):
pincount = lib.pincount