mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Add 60s watchdog for nrf52
In order to restore after battery voltage sags too low
This commit is contained in:
parent
fb726e48c2
commit
f46f822bfc
14 changed files with 128 additions and 9 deletions
|
|
@ -223,6 +223,7 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
board.loop();
|
||||
the_mesh.loop();
|
||||
sensors.loop();
|
||||
#ifdef DISPLAY_CLASS
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
board.loop();
|
||||
modem->loop();
|
||||
|
||||
if (!modem->isActuallyTransmitting()) {
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
board.loop();
|
||||
|
||||
int len = strlen(command);
|
||||
while (Serial.available() && len < sizeof(command)-1) {
|
||||
char c = Serial.read();
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
board.loop();
|
||||
|
||||
int len = strlen(command);
|
||||
while (Serial.available() && len < sizeof(command)-1) {
|
||||
char c = Serial.read();
|
||||
|
|
|
|||
|
|
@ -589,6 +589,7 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
board.loop();
|
||||
the_mesh.loop();
|
||||
rtc_clock.tick();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
board.loop();
|
||||
|
||||
int len = strlen(command);
|
||||
while (Serial.available() && len < sizeof(command)-1) {
|
||||
char c = Serial.read();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue