From d66bbdbfbdcdefab421c1bcc9bb7d6890e993fbf Mon Sep 17 00:00:00 2001 From: Christian OE3CJB Bauer Date: Wed, 10 Feb 2021 20:23:07 +0100 Subject: [PATCH] tracker_mode correction --- src/TTGO_T-Beam_LoRa_APRS.ino | 12 +++++++----- src/TTGO_T-Beam_LoRa_APRS_config.h | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index a27fec5..946db25 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -107,12 +107,14 @@ int button_ctr=0; // bool ssd1306_found = false; // bool axp192_found = false; -enum Tx_Mode {TRACKER, WX_TRACKER, WX_MOVE, WX_FIXED}; +#define TRACKER 0 +#define WX_TRACKER 1 +#define WX_MOVE 2 +#define WX_FIXED 3 // Position from GPS for TRACKER and WX_TRACKER // Position for WX_ONLY from Headerfile!!! -Tx_Mode tracker_mode; - +uint8_t tracker_mode; // Pins for GPS #ifdef T_BEAM_V1_0 @@ -282,7 +284,7 @@ void setup() for (int i=0;i> 0=TRACKER, 1=WX_TRACKER, 2=WX_MOVE, 3=WX_FIXED +#define TRACKERMODE 0 // preset MODE here, if flash not used >> "0"=TRACKER, "1"=WX_TRACKER, "2"=WX_MOVE, "3"=WX_FIXED #define CALLSIGN "XX9XXX-11" // enter your callsign here - less then 6 letter callsigns please add "spaces" so total length is 6 (without SSID) #define WX_CALLSIGN "XX9XXX-11" // use same callsign but you can use different SSID #define LONGITUDE_PRESET "01539.85E" // please in APRS notation DDDMM.mmE or DDDMM.mmW @@ -53,7 +53,7 @@ // "b" => BICYCLE // "<" => MOTORCYCLE // "R" => Recreation Vehicle -// #define HW_COMMENT // send Alt und Battery Voltage, UNcomment if don't want to send it +// #define HW_COMMENT // send Alt und Battery Voltage, UNcomment if you want to send it #define MY_COMMENT "" // add your coment here - if empty then no comment is sent // #define MY_COMMENT "TTGO by OE3CJB" // add your coment here - if empty then no comment is sent