Harden nRF52 persistence, watchdog, and build variants

This commit is contained in:
mikecarper committed 2026-07-20 22:55:58 -07:00
1 parent cd0c06dc91
commit d5a00da2a0
25 files changed
+825 -76

No files matched your search

+3
View File
@@ -503,6 +503,9 @@ void setup() {
}
void loop() {
#if defined(NRF52_PLATFORM)
board.feedWatchdog();
#endif
the_mesh.loop();
sensors.loop();
#ifdef DISPLAY_CLASS
+3
View File
@@ -124,6 +124,9 @@ void setup() {
}
void loop() {
#if defined(NRF52_PLATFORM)
board.feedWatchdog();
#endif
modem->loop();
if (!modem->isActuallyTransmitting()) {
+3
View File
@@ -148,6 +148,9 @@ void setup() {
}
void loop() {
#if defined(NRF52_PLATFORM)
board.feedWatchdog(the_mesh.getNodePrefs()->system_watchdog_enabled != 0);
#endif
// Handle Serial CLI
int len = strlen(command);
while (Serial.available() && len < sizeof(command)-1) {
+3
View File
@@ -107,6 +107,9 @@ void setup() {
}
void loop() {
#if defined(NRF52_PLATFORM)
board.feedWatchdog(the_mesh.getNodePrefs()->system_watchdog_enabled != 0);
#endif
int len = strlen(command);
while (Serial.available() && len < sizeof(command)-1) {
char c = Serial.read();
+3
View File
@@ -597,6 +597,9 @@ void setup() {
}
void loop() {
#if defined(NRF52_PLATFORM)
board.feedWatchdog();
#endif
the_mesh.loop();
rtc_clock.tick();
#ifdef HAS_EXTERNAL_WATCHDOG
+3
View File
@@ -121,6 +121,9 @@ void setup() {
}
void loop() {
#if defined(NRF52_PLATFORM)
board.feedWatchdog(the_mesh.getNodePrefs()->system_watchdog_enabled != 0);
#endif
int len = strlen(command);
while (Serial.available() && len < sizeof(command)-1) {
char c = Serial.read();