firmware: keep temp config lookup outside UART guard
This commit is contained in:
@@ -448,3 +448,15 @@ def test_legacy_dashboard_uart_is_disabled_by_default():
|
||||
assert "DASHBOARD_UART_RX_PIN 22" not in config
|
||||
assert "#if DASHBOARD_UART_ENABLED" in source
|
||||
assert "pollDashboardUart();" in source
|
||||
|
||||
|
||||
def test_temp_config_lookup_is_available_to_http_handlers():
|
||||
source = firmware_source()
|
||||
|
||||
assert "int findTempConfigIndexById(" in source
|
||||
assert "configIndex = findTempConfigIndexById(id);" in source
|
||||
assert "findTempConfigIndexForUart" not in source
|
||||
|
||||
helper_pos = source.index("int findTempConfigIndexById(")
|
||||
uart_guard_pos = source.index("#if DASHBOARD_UART_ENABLED")
|
||||
assert helper_pos < uart_guard_pos
|
||||
|
||||
Reference in New Issue
Block a user