diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 0646a55..c092738 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -387,15 +387,23 @@ struct st_configitems config_list[] = { {"wifi", "Wifi mode (0/1/2/3)", 0, &sonde.config.wifi}, {"debug", "Debug mode (0/1)", 0, &sonde.config.debug}, {"maxsonde", "Maxsonde", 0, &sonde.config.maxsonde}, - {"display", "Display mode (1/2/3)", 0, &sonde.config.display}, + {"display", "Display screens (scan,default,...)", -6, sonde.config.display}, /* Spectrum display settings */ {"spectrum", "Show spectrum (-1=no, 0=forever, >0=seconds)", 0, &sonde.config.spectrum}, {"startfreq", "Startfreq (MHz)", 0, &sonde.config.startfreq}, {"channelbw", "Bandwidth (kHz)", 0, &sonde.config.channelbw}, {"marker", "Spectrum MHz marker", 0, &sonde.config.marker}, {"noisefloor", "Sepctrum noisefloor", 0, &sonde.config.noisefloor}, + /* decoder settings */ + {"", "Receiver configuration", -5, NULL}, {"showafc", "Show AFC value", 0, &sonde.config.showafc}, {"freqofs", "RX frequency offset (Hz)", 0, &sonde.config.freqofs}, + {"rs41.agcbw", "RS41 AGC bandwidth", 0, &sonde.config.rs41.agcbw}, + {"rs41.rxbw", "RS41 RX bandwidth", 0, &sonde.config.rs41.rxbw}, + {"rs92.rxbw", "RS92 RX (and AGC) bandwidth", 0, &sonde.config.rs92.rxbw}, + {"rs92.alt2d", "RS92 2D fix default altitude", 0, &sonde.config.rs92.alt2d}, + {"dfm.agcbw", "DFM6/9 AGC bandwidth", 0, &sonde.config.dfm.agcbw}, + {"dfm.rxbw", "DFM6/9 RX bandwidth", 0, &sonde.config.dfm.rxbw}, {"", "Data feed configuration", -5, NULL}, /* APRS settings */ {"call", "Call", 8, sonde.config.call}, @@ -415,14 +423,6 @@ struct st_configitems config_list[] = { {"tcp.port", "APRS TCP Port", 0, &sonde.config.tcpfeed.port}, {"tcp.idformat", "DFM ID Format", -2, &sonde.config.tcpfeed.idformat}, {"tcp.highrate", "Rate limit", 0, &sonde.config.tcpfeed.highrate}, - /* decoder settings */ - {"", "Receiver configuration", -5, NULL}, - {"rs41.agcbw", "RS41 AGC bandwidth", 0, &sonde.config.rs41.agcbw}, - {"rs41.rxbw", "RS41 RX bandwidth", 0, &sonde.config.rs41.rxbw}, - {"rs92.rxbw", "RS92 RX (and AGC) bandwidth", 0, &sonde.config.rs92.rxbw}, - {"rs92.alt2d", "RS92 2D fix default altitude", 0, &sonde.config.rs92.alt2d}, - {"dfm.agcbw", "DFM6/9 AGC bandwidth", 0, &sonde.config.dfm.agcbw}, - {"dfm.rxbw", "DFM6/9 RX bandwidth", 0, &sonde.config.dfm.rxbw}, /* Hardware dependeing settings */ {"", "Hardware configuration (requires reboot)", -5, NULL}, {"disptype", "Display type (0=OLED/SSD1306, 1=TFT/ILI9225, 2=OLED/SH1106)", 0, &sonde.config.disptype}, @@ -434,7 +434,7 @@ struct st_configitems config_list[] = { {"button_pin", "Button input port", -4, &sonde.config.button_pin}, {"button2_pin", "Button 2 input port", -4, &sonde.config.button2_pin}, {"touch_thresh", "Touch button threshold", 0, &sonde.config.touch_thresh}, - {"power_pout", "Power control port", 0, &sonde.config.power_pout}, + {"power_pout", "Power control port", 0, &sonde.config.power_pout}, {"led_pout", "LED output port", 0, &sonde.config.led_pout}, {"gps_rxd", "GPS RXD pin (-1 to disable)", 0, &sonde.config.gps_rxd}, {"gps_txd", "GPS TXD pin (not really needed)", 0, &sonde.config.gps_txd}, @@ -468,14 +468,37 @@ void addConfigHeading(char *ptr, const char *label) { strcat(ptr, label); strcat(ptr, "\n"); } +void addConfigInt8List(char *ptr, int idx, const char *label, int8_t *list) { + sprintf(ptr + strlen(ptr), "