mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
fixing portduino is getting old ...
This commit is contained in:
parent
54686905dc
commit
bbaeeb7ce9
@ -182,6 +182,9 @@ Power::Power() : OSThread("Power")
|
|||||||
{
|
{
|
||||||
statusHandler = {};
|
statusHandler = {};
|
||||||
low_voltage_counter = 0;
|
low_voltage_counter = 0;
|
||||||
|
#ifdef DEBUG_HEAP
|
||||||
|
lastheap = ESP.getFreeHeap();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Power::analogInit()
|
bool Power::analogInit()
|
||||||
|
@ -182,7 +182,7 @@ void MQTT::reconnect()
|
|||||||
sendSubscriptions();
|
sendSubscriptions();
|
||||||
} else {
|
} else {
|
||||||
DEBUG_MSG("Failed to contact MQTT server (%d/10)...\n",reconnectCount);
|
DEBUG_MSG("Failed to contact MQTT server (%d/10)...\n",reconnectCount);
|
||||||
#if HAS_WIFI
|
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
||||||
if (reconnectCount > 9) {
|
if (reconnectCount > 9) {
|
||||||
needReconnect = true;
|
needReconnect = true;
|
||||||
wifiReconnect->setIntervalFromNow(1000);
|
wifiReconnect->setIntervalFromNow(1000);
|
||||||
|
@ -40,7 +40,9 @@ class Power : private concurrency::OSThread
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t low_voltage_counter;
|
uint8_t low_voltage_counter;
|
||||||
|
#ifdef DEBUG_HEAP
|
||||||
uint32_t lastheap;
|
uint32_t lastheap;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Power *power;
|
extern Power *power;
|
||||||
|
Loading…
Reference in New Issue
Block a user