tentative fix: save kisstnc.active (not yet tested)
This commit is contained in:
parent
edc09c4e17
commit
8cc844b22f
|
|
@ -427,8 +427,8 @@ struct st_configitems config_list[] = {
|
|||
{"call", "Call", 8, sonde.config.call},
|
||||
{"passcode", "Passcode", 8, sonde.config.passcode},
|
||||
/* KISS tnc settings */
|
||||
{"kisstnc", "KISS TNC (port 14590) (needs reboot)", 0, &sonde.config.kisstnc.active},
|
||||
{"kisstnc.idformat", "DFM ID Format", -2, &sonde.config.kisstnc.idformat},
|
||||
{"kisstnc.active", "KISS TNC (port 14590) (needs reboot)", 0, &sonde.config.kisstnc.active},
|
||||
{"kisstnc.idformat", "KISS TNC ID Format", -2, &sonde.config.kisstnc.idformat},
|
||||
/* AXUDP settings */
|
||||
{"axudp.active", "AXUDP active", -3, &sonde.config.udpfeed.active},
|
||||
{"axudp.host", "AXUDP Host", 63, sonde.config.udpfeed.host},
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20191128";
|
||||
const char *version_id = "devel20191129";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
const int SPIFFS_MINOR=1;
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ void Sonde::defaultConfig() {
|
|||
config.tcpfeed.port = 12345;
|
||||
config.tcpfeed.highrate = 10;
|
||||
config.tcpfeed.idformat = ID_DFMDXL;
|
||||
config.kisstnc.active = 0;
|
||||
}
|
||||
|
||||
void Sonde::setConfig(const char *cfg) {
|
||||
|
|
@ -268,6 +269,10 @@ void Sonde::setConfig(const char *cfg) {
|
|||
config.dfm.rxbw = atoi(val);
|
||||
} else if(strcmp(cfg,"rs92.alt2d")==0) {
|
||||
config.rs92.alt2d= atoi(val);
|
||||
} else if(strcmp(cfg,"kisstnc.active")==0) {
|
||||
config.kisstnc.active = atoi(val);
|
||||
} else if(strcmp(cfg,"kisstnc.idformat")==0) {
|
||||
config.kisstnc.idformat = atoi(val);
|
||||
} else if(strcmp(cfg,"rs92.rxbw")==0) {
|
||||
config.rs92.rxbw = atoi(val);
|
||||
} else if(strcmp(cfg,"axudp.active")==0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue