feat: later deep sleep, add delay to setup
This commit is contained in:
parent
3b899acfbf
commit
ef31de9589
|
@ -20,7 +20,7 @@ colorToTime_t schedule[5] = {
|
|||
{7, 2, cColor INIT_WakeupColor},
|
||||
{8, 0, cColor(0, 0, 0)},
|
||||
{19, 30, cColor INIT_SleepColor},
|
||||
{20, 45, cColor INIT_DeepSleepColor}};
|
||||
{21, 0, cColor INIT_DeepSleepColor}};
|
||||
timeToColor ttc = schedule;
|
||||
|
||||
uint32_t currentColor = 0;
|
||||
|
@ -179,7 +179,6 @@ void updateRTCFromNTP()
|
|||
|
||||
void setup()
|
||||
{
|
||||
|
||||
#ifdef SERIAL_DEBUG
|
||||
Serial.begin(115200);
|
||||
Log.begin(LOG_LEVEL_NOTICE, &Serial);
|
||||
|
@ -195,6 +194,7 @@ void setup()
|
|||
strip.show();
|
||||
|
||||
// rtc setup
|
||||
delay(120);
|
||||
initRTC();
|
||||
if (hasRTC)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue