diff --git a/data_embed/index.html b/data_embed/index.html
index a336a9d..ae2fd51 100644
--- a/data_embed/index.html
+++ b/data_embed/index.html
@@ -64,7 +64,11 @@
diff --git a/include/taskWebServer.h b/include/taskWebServer.h
index a3530bd..c46ada6 100644
--- a/include/taskWebServer.h
+++ b/include/taskWebServer.h
@@ -37,8 +37,12 @@ static const char *const PREF_APRS_FIXED_BEACON_INTERVAL_PRESET = "aprs_fb_inter
static const char *const PREF_APRS_FIXED_BEACON_INTERVAL_PRESET_INIT = "aprs_fb_in_init";
static const char *const PREF_APRS_GPS_EN = "gps_enabled";
static const char *const PREF_APRS_GPS_EN_INIT = "gps_state_init";
+static const char *const PREF_APRS_SHOW_CMT = "show_cmt";
+static const char *const PREF_APRS_SHOW_CMT_INIT = "show_cmt_init";
static const char *const PREF_DEV_BT_EN = "bt_enabled";
static const char *const PREF_DEV_BT_EN_INIT = "bt_enabled_init";
+static const char *const PREF_DEV_OL_EN = "oled_enabled";
+static const char *const PREF_DEV_OL_EN_INIT = "oled_enabled_init";
typedef struct {
String callsign;
diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino
index 8f8cf99..7012ee6 100644
--- a/src/TTGO_T-Beam_LoRa_APRS.ino
+++ b/src/TTGO_T-Beam_LoRa_APRS.ino
@@ -67,6 +67,7 @@ boolean gps_state = true;
boolean key_up = true;
boolean t_lock = false;
boolean fixed_beacon_enabled = false;
+boolean show_cmt = true;
#ifdef SHOW_ALT
boolean showAltitude = true;
#else
@@ -82,6 +83,11 @@ boolean fixed_beacon_enabled = false;
#else
boolean enable_bluetooth = false;
#endif
+#ifdef ENABLE_OLED
+ boolean enabled_oled = true;
+#else
+ boolean enabled_oled = false;
+#endif
// Variables and Constants
String loraReceivedFrameString = ""; //data on buff is copied to this string
@@ -232,8 +238,10 @@ void prepareAPRSFrame(){
outString += aprsLonPreset;
outString += aprsSymbol;
}
- outString += aprsComment;
-
+ if(show_cmt){
+ outString += aprsComment;
+ }
+
if (showBattery) {
outString += " Batt=";
outString += String(BattVolts, 2);
@@ -476,11 +484,23 @@ void setup(){
}
+ if (!preferences.getBool(PREF_APRS_SHOW_CMT_INIT)){
+ preferences.putBool(PREF_APRS_SHOW_CMT_INIT, true);
+ preferences.putBool(PREF_APRS_SHOW_CMT, show_cmt);
+ }
+ show_cmt = preferences.getBool(PREF_APRS_SHOW_CMT);
+
if (!preferences.getBool(PREF_DEV_BT_EN_INIT)){
preferences.putBool(PREF_DEV_BT_EN_INIT, true);
preferences.putBool(PREF_DEV_BT_EN, enable_bluetooth);
}
- enable_bluetooth = preferences.getBool(PREF_DEV_BT_EN);
+ enable_bluetooth = preferences.getBool(PREF_DEV_BT_EN);
+
+ if (!preferences.getBool(PREF_DEV_OL_EN_INIT)){
+ preferences.putBool(PREF_DEV_OL_EN_INIT, true);
+ preferences.putBool(PREF_DEV_OL_EN,enabled_oled);
+ }
+ enabled_oled = preferences.getBool(PREF_DEV_OL_EN);
#endif
for (int i=0;i