Compare commits

..

No commits in common. "e7211140afa9d93bef44dd70621f01487cf09b3c" and "9d16e693f712518bcdcf51c221eceb506313af78" have entirely different histories.

4 changed files with 8 additions and 4 deletions

Binary file not shown.

View file

@ -87,7 +87,10 @@ void setup()
SPIFFS.begin();
#ifdef DEVELOPMENT
// Serial is not used in non development mode
Serial.begin(SERIAL_BAUD_RATE);
#endif
Serial.flush();
delay(1000);

View file

@ -165,13 +165,14 @@ 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)i + " - " + (String)tc_data[i].hh + ":" + (String)tc_data[i].mm);
//Serial.println((String)tc_data[i].hh + ":" + (String)tc_data[i].mm);
if (((tc_data[i].hh * 60) + tc_data[i].mm) <= ((hour() * 60) + minute()))
if (tc_data[i].hh <= hour() &&
tc_data[i].mm <= 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)