diff --git a/microcontrollers/main.ino b/microcontrollers/main.ino index e6fe9f2..cd2c6f7 100644 --- a/microcontrollers/main.ino +++ b/microcontrollers/main.ino @@ -184,7 +184,7 @@ void fail_flash() { write_led(led_yellow, LOW); for(;;) { - bool state = get_millis() & 256; + bool state = get_millis() & 1024; #ifdef LED_BUILTIN digitalWrite(LED_BUILTIN, state); #endif @@ -369,7 +369,7 @@ void loopw(void *) #ifdef LED_BUILTIN if (s) - digitalWrite(LED_BUILTIN, cu_count >= 20 && s->is_active()); + digitalWrite(LED_BUILTIN, ((cu_count / 10) & 1) && s->is_active()); #endif ntp.update(); diff --git a/server.cpp b/server.cpp index 81a39ed..31d383e 100644 --- a/server.cpp +++ b/server.cpp @@ -535,7 +535,7 @@ bool server::is_active() bool active = false; std::unique_lock lck(threads_lock); for(auto &e: threads) - active |= !e.second; + active |= !*e.second; #endif return active; }