Compare commits
2 commits
9d16e693f7
...
e7211140af
Author | SHA1 | Date | |
---|---|---|---|
|
e7211140af | ||
|
9ad3db73bf |
4 changed files with 4 additions and 8 deletions
BIN
firmware/20230514_firmware.ino.bin
Normal file
BIN
firmware/20230514_firmware.ino.bin
Normal file
Binary file not shown.
BIN
firmware/20230514_firmware_dev.ino.bin
Normal file
BIN
firmware/20230514_firmware_dev.ino.bin
Normal file
Binary file not shown.
|
@ -87,10 +87,7 @@ void setup()
|
|||
|
||||
SPIFFS.begin();
|
||||
|
||||
#ifdef DEVELOPMENT
|
||||
// Serial is not used in non development mode
|
||||
Serial.begin(SERIAL_BAUD_RATE);
|
||||
#endif
|
||||
|
||||
Serial.flush();
|
||||
delay(1000);
|
||||
|
|
|
@ -165,14 +165,13 @@ void tc_update_main()
|
|||
// search for the current active time slot
|
||||
for (int i = NUMBER_OF_TIMER_DATA_BLOCKS-1; i >= 0 && target_data_block == 255; --i)
|
||||
{
|
||||
//Serial.println((String)tc_data[i].hh + ":" + (String)tc_data[i].mm);
|
||||
Serial.println((String)i + " - " + (String)tc_data[i].hh + ":" + (String)tc_data[i].mm);
|
||||
|
||||
if (tc_data[i].hh <= hour() &&
|
||||
tc_data[i].mm <= minute())
|
||||
if (((tc_data[i].hh * 60) + tc_data[i].mm) <= ((hour() * 60) + minute()))
|
||||
{
|
||||
target_data_block = i+1; // found the next block to load
|
||||
Serial.println((String)i + " => " + target_data_block);
|
||||
}
|
||||
//Serial.println((String)i + " => " + target_data_block);
|
||||
}
|
||||
|
||||
if (target_data_block == 255)
|
||||
|
|
Loading…
Reference in a new issue