mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-05 17:51:57 +02:00
fix build on python <v3.12 (#484)
shiped by platformio by default on windows
This commit is contained in:
@@ -117,7 +117,7 @@ def _build_board_flags(defaults: dict, board_name: str) -> List[str]:
|
|||||||
f"DIRECT_PIN({format_value(sensor.get('int', 255), 'pin')})",
|
f"DIRECT_PIN({format_value(sensor.get('int', 255), 'pin')})",
|
||||||
'0'
|
'0'
|
||||||
]
|
]
|
||||||
sensor_list.append(f'SENSOR_DESC_ENTRY({','.join(params)})')
|
sensor_list.append(f"SENSOR_DESC_ENTRY({','.join(params)})")
|
||||||
add('PIN_IMU_SDA', sensor.get('sda'), 'pin')
|
add('PIN_IMU_SDA', sensor.get('sda'), 'pin')
|
||||||
add('PIN_IMU_SCL', sensor.get('scl'), 'pin')
|
add('PIN_IMU_SCL', sensor.get('scl'), 'pin')
|
||||||
|
|
||||||
@@ -203,7 +203,8 @@ if slime_board:
|
|||||||
)
|
)
|
||||||
output_flags = output_flags.get(slime_board, []) if isinstance(output_flags, dict) else []
|
output_flags = output_flags.get(slime_board, []) if isinstance(output_flags, dict) else []
|
||||||
|
|
||||||
print(f">>> Appending build flags:\n {'\n '.join(output_flags)}")
|
separator = '\n '
|
||||||
|
print(f">>> Appending build flags:\n {separator.join(output_flags)}")
|
||||||
env.Append(BUILD_FLAGS=output_flags)
|
env.Append(BUILD_FLAGS=output_flags)
|
||||||
else:
|
else:
|
||||||
print(">>> custom_slime_board not set - skipping")
|
print(">>> custom_slime_board not set - skipping")
|
||||||
|
|||||||
Reference in New Issue
Block a user