Skip to content

Commit

Permalink
Update bbn_m5tough_active_boat.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored May 16, 2023
1 parent d0cf77e commit 9b8aa08
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bbn_m5tough_active_boat/bbn_m5tough_active_boat.ino
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ void loop() {

if (!settingMode) {
if (last_touched > 0 && millis() - last_touched > GO_SLEEP_TIMEOUT) {
if (skClient.c.connected()) {
skClient.c.stop();
}
if (pypClient.c.connected()) {
pypClient.c.stop();
}
if (nmea0183Client.c.connected()) {
nmea0183Client.c.stop();
}
if (mqttNetClient.connected()) {
mqttNetClient.stop();
}
deep_sleep_with_touch_wakeup();
} else {
if (victron_mqtt_began) {
Expand Down

0 comments on commit 9b8aa08

Please sign in to comment.