fixing portduino is getting old ...

raspi-portduino
Thomas Göttgens 2022-12-16 20:46:43 +01:00
rodzic 54686905dc
commit bbaeeb7ce9
3 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -182,6 +182,9 @@ Power::Power() : OSThread("Power")
{
statusHandler = {};
low_voltage_counter = 0;
#ifdef DEBUG_HEAP
lastheap = ESP.getFreeHeap();
#endif
}
bool Power::analogInit()

Wyświetl plik

@ -182,7 +182,7 @@ void MQTT::reconnect()
sendSubscriptions();
} else {
DEBUG_MSG("Failed to contact MQTT server (%d/10)...\n",reconnectCount);
#if HAS_WIFI
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
if (reconnectCount > 9) {
needReconnect = true;
wifiReconnect->setIntervalFromNow(1000);

Wyświetl plik

@ -40,7 +40,9 @@ class Power : private concurrency::OSThread
private:
uint8_t low_voltage_counter;
#ifdef DEBUG_HEAP
uint32_t lastheap;
#endif
};
extern Power *power;