re-enable raw build flags checks for USB mode
only checking CPPDEFINES sometimes misses the flag
This commit is contained in:
@@ -39,9 +39,9 @@ def has_cdc_on_boot_enabled(env):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# # Check in raw build flags - results can be misleading, because this ignores build_unflags
|
# # Check in raw build flags - results can be misleading, because this ignores build_unflags
|
||||||
# for flag in build_flags:
|
for flag in build_flags:
|
||||||
# if isinstance(flag, str) and 'ARDUINO_USB_CDC_ON_BOOT=1' in flag:
|
if isinstance(flag, str) and 'ARDUINO_USB_CDC_ON_BOOT=1' in flag:
|
||||||
# return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -61,9 +61,9 @@ def has_usb_mode_enabled(env):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# Check in raw build flags - results can be misleading, because this ignores build_unflags
|
# Check in raw build flags - results can be misleading, because this ignores build_unflags
|
||||||
# for flag in build_flags:
|
for flag in build_flags:
|
||||||
# if isinstance(flag, str) and 'ARDUINO_USB_MODE=1' in flag:
|
if isinstance(flag, str) and 'ARDUINO_USB_MODE=1' in flag:
|
||||||
# return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user