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:
parent
f0ec05cc20
commit
8a18c1444c
1 changed files with 3 additions and 1 deletions
|
|
@ -168,6 +168,7 @@ void get_eeprom_last_commit(String)
|
|||
return;
|
||||
}
|
||||
|
||||
#ifndef UNIT_TEST // don't define setup() and loop() for unit testing
|
||||
void setup()
|
||||
{
|
||||
#if defined(SUPPORT_EEPROM) && defined(MCU_PICO)
|
||||
|
|
@ -238,6 +239,7 @@ void loop()
|
|||
comPort = (HardwareSerial*) &SECONDARY_SERIAL_PORT;
|
||||
bytesAvailable = true;
|
||||
}
|
||||
#endif
|
||||
if (bytesAvailable)
|
||||
{
|
||||
handle_command(comPort->readStringUntil('\n'));
|
||||
|
|
@ -250,4 +252,4 @@ void loop()
|
|||
for (int i = 0; i < registered_loop_fn_count; i++)
|
||||
registered_loop_functions[i]();
|
||||
}
|
||||
#endif
|
||||
#endif //ndef UNIT_TEST
|
||||
Loading…
Add table
Add a link
Reference in a new issue