From a5769a5d74bd39f10db22b21c1c22fc6a070fdea Mon Sep 17 00:00:00 2001 From: Sascha Bias Date: Sat, 11 Sep 2021 21:54:33 +0200 Subject: [PATCH] Manually send an APRS frame an GPIO --- src/LoRa_APRS_Tracker.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index 8c93220..2fbac18 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -69,6 +69,8 @@ void setup() digitalWrite(Config.ptt.io_pin, Config.ptt.reverse ? HIGH : LOW); } + pinMode(38, INPUT); + // make sure wifi and bt is off as we don't need it: WiFi.mode(WIFI_OFF); btStop(); @@ -185,6 +187,11 @@ void loop() } } + if (!digitalRead(38)) + { + send_update=true; + } + if(send_update && gps_loc_update) { send_update = false;