Compare commits
No commits in common. "e7211140afa9d93bef44dd70621f01487cf09b3c" and "9d16e693f712518bcdcf51c221eceb506313af78" have entirely different histories.
e7211140af
...
9d16e693f7
4 changed files with 8 additions and 4 deletions
Binary file not shown.
Binary file not shown.
|
@ -87,7 +87,10 @@ void setup()
|
||||||
|
|
||||||
SPIFFS.begin();
|
SPIFFS.begin();
|
||||||
|
|
||||||
|
#ifdef DEVELOPMENT
|
||||||
|
// Serial is not used in non development mode
|
||||||
Serial.begin(SERIAL_BAUD_RATE);
|
Serial.begin(SERIAL_BAUD_RATE);
|
||||||
|
#endif
|
||||||
|
|
||||||
Serial.flush();
|
Serial.flush();
|
||||||
delay(1000);
|
delay(1000);
|
||||||
|
|
|
@ -165,13 +165,14 @@ void tc_update_main()
|
||||||
// search for the current active time slot
|
// search for the current active time slot
|
||||||
for (int i = NUMBER_OF_TIMER_DATA_BLOCKS-1; i >= 0 && target_data_block == 255; --i)
|
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
|
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)
|
if (target_data_block == 255)
|
||||||
|
|
Loading…
Reference in a new issue