mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-07-31 02:52:48 +00:00
Feature: Make RGB LED (preset colors) accessible via API/etc #3039
Fixes #3063
This commit is contained in:
@@ -257,7 +257,7 @@ NetPhase Network::initialPhase() const {
|
||||
void Network::loop() {
|
||||
#ifndef EMSESP_STANDALONE
|
||||
// if we already have a Wifi or Ethernet connection then re-check every NETWORK_RECONNECTION_DELAY_LONG, otherwise NETWORK_RECONNECTION_DELAY_SHORT
|
||||
const unsigned long currentMillis = millis();
|
||||
const unsigned long currentMillis = uuid::get_uptime_ms();
|
||||
const uint32_t reconnectDelay =
|
||||
(network_iface_ == NetIface::WIFI || network_iface_ == NetIface::ETHERNET) ? NETWORK_RECONNECTION_DELAY_LONG : NETWORK_RECONNECTION_DELAY_SHORT;
|
||||
if (!lastConnectionAttempt_ || static_cast<uint32_t>(currentMillis - lastConnectionAttempt_) >= reconnectDelay) {
|
||||
|
||||
Reference in New Issue
Block a user