From f8206b645a2bfd7a9bbb1a4b1cfab82c7735383c Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Sat, 8 Jun 2019 14:53:19 +0200 Subject: [PATCH] re-enable axudp --- RX_FSK/RX_FSK.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 91d2f13..f6854a6 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -525,7 +525,6 @@ const char *handleConfigPost(AsyncWebServerRequest *request) { f.printf("%s=%s\n", config_list[idx].name, strvalue.c_str()); } f.close(); - currentDisplay = sonde.config.display; setupConfigData(); return ""; } @@ -1256,12 +1255,12 @@ void loopDecoder() { } - if (0 && res == 0 && connected) { + if ((res&0xff) == 0 && connected) { //Send a packet with position information // first check if ID and position lat+lonis ok - if (sonde.si()->validID && ((sonde.si()->validPos & 0x03) == 0x03)) { + SondeInfo *s = &sonde.sondeList[rxtask.receiveSonde]; + if (s->validID && ((s->validPos & 0x03) == 0x03)) { Serial.println("Sending position via UDP"); - SondeInfo *s = sonde.si(); char raw[201]; const char *str = aprs_senddata(s->lat, s->lon, s->alt, s->hs, s->dir, s->vs, sondeTypeStr[s->type], s->id, "TE0ST", sonde.config.udpfeed.symbol);