TEST SWITCH
parent
7833e32a13
commit
770464fadf
|
@ -117,9 +117,9 @@ String aprsLonPreset = LONGITUDE_PRESET;
|
|||
String aprsFreq = TXFREQ;
|
||||
|
||||
#ifdef SPEED_1200
|
||||
String aprsMode = "1200";
|
||||
int aprsMode = 1200;
|
||||
#else
|
||||
String aprsMode = "300";
|
||||
int aprsMode = 300;
|
||||
#endif
|
||||
|
||||
boolean gps_state = true;
|
||||
|
@ -674,9 +674,9 @@ void setup(){
|
|||
|
||||
if (!preferences.getBool(PREF_APRS_MODE_INIT)){
|
||||
preferences.putBool(PREF_APRS_MODE_INIT, true);
|
||||
preferences.putString(PREF_APRS_MODE, aprsMode);
|
||||
preferences.putInt(PREF_APRS_MODE, aprsMode);
|
||||
}
|
||||
aprsMode = preferences.getString(PREF_APRS_MODE);
|
||||
aprsMode = preferences.getInt(PREF_APRS_MODE);
|
||||
|
||||
if (!preferences.getBool(PREF_APRS_TXPOWER_INIT)){
|
||||
preferences.putBool(PREF_APRS_TXPOWER_INIT, true);
|
||||
|
|
|
@ -150,7 +150,7 @@ void handle_Cfg() {
|
|||
jsonData += jsonLineFromPreferenceBool(PREF_APRS_SHOW_ALTITUDE);
|
||||
jsonData += jsonLineFromPreferenceBool(PREF_APRS_GPS_EN);
|
||||
jsonData += jsonLineFromPreferenceString(PREF_APRS_FREQ);
|
||||
jsonData += jsonLineFromPreferenceString(PREF_APRS_MODE);
|
||||
jsonData += jsonLineFromPreferenceInt(PREF_APRS_MODE);
|
||||
jsonData += jsonLineFromPreferenceInt(PREF_APRS_TXPOWER);
|
||||
jsonData += jsonLineFromPreferenceBool(PREF_DEV_OL_EN);
|
||||
jsonData += jsonLineFromPreferenceBool(PREF_APRS_SHOW_CMT);
|
||||
|
@ -246,7 +246,7 @@ void handle_saveDeviceCfg(){
|
|||
preferences.putString(PREF_APRS_FREQ, server.arg(PREF_APRS_FREQ));
|
||||
}
|
||||
if (server.hasArg(PREF_APRS_MODE)){
|
||||
preferences.putString(PREF_APRS_MODE, server.arg(PREF_APRS_MODE));
|
||||
preferences.putInt(PREF_APRS_MODE, server.arg(PREF_APRS_MODE).toInt());
|
||||
}
|
||||
if (server.hasArg(PREF_APRS_TXPOWER)){
|
||||
preferences.putInt(PREF_APRS_TXPOWER, server.arg(PREF_APRS_TXPOWER).toInt());
|
||||
|
|
Loading…
Reference in New Issue