From 7a57172803f3487aa2e13e24e19f862a9b87d3c0 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 1 Nov 2020 01:28:25 +0100 Subject: [PATCH] make sure wifi and bt is off if not needed --- src/LoRa_APRS_iGate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 76602bd..068d748 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -78,6 +78,12 @@ void setup() setup_ota(); setup_ntp(); } + else + { + // make sure wifi and bt is off if we don't need it: + WiFi.mode(WIFI_OFF); + btStop(); + } if(Config.aprs_is.active) setup_aprs_is(); setup_timer();