Fix precompiler directives

I mistakenly deleted an ifndef in 40439a0ead
thinking that it wasn't matched by an #endif.

This change reverts that error, and it builds properly again.
This commit is contained in:
Richard Bowman 2023-02-28 10:23:24 +00:00
parent f0ec05cc20
commit 8a18c1444c

View file

@ -168,6 +168,7 @@ void get_eeprom_last_commit(String)
return; return;
} }
#ifndef UNIT_TEST // don't define setup() and loop() for unit testing
void setup() void setup()
{ {
#if defined(SUPPORT_EEPROM) && defined(MCU_PICO) #if defined(SUPPORT_EEPROM) && defined(MCU_PICO)
@ -238,6 +239,7 @@ void loop()
comPort = (HardwareSerial*) &SECONDARY_SERIAL_PORT; comPort = (HardwareSerial*) &SECONDARY_SERIAL_PORT;
bytesAvailable = true; bytesAvailable = true;
} }
#endif
if (bytesAvailable) if (bytesAvailable)
{ {
handle_command(comPort->readStringUntil('\n')); handle_command(comPort->readStringUntil('\n'));
@ -250,4 +252,4 @@ void loop()
for (int i = 0; i < registered_loop_fn_count; i++) for (int i = 0; i < registered_loop_fn_count; i++)
registered_loop_functions[i](); registered_loop_functions[i]();
} }
#endif #endif //ndef UNIT_TEST