kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
detect rdzclient timeout and disconnect from app
rodzic
8e6d953e60
commit
981ecc8044
|
@ -1141,7 +1141,7 @@ void unkHandler(T nmea) {
|
|||
}
|
||||
}
|
||||
|
||||
#define DEBUG_GPS 0
|
||||
//#define DEBUG_GPS
|
||||
static bool gpsCourseOld;
|
||||
static int lastCourse;
|
||||
void gpsTask(void *parameter) {
|
||||
|
@ -1987,8 +1987,15 @@ void loopDecoder() {
|
|||
s->countKT,
|
||||
s->crefKT
|
||||
);
|
||||
|
||||
rdzclient.write(raw, len>1024?1024:len);
|
||||
//Serial.println("Writing rdzclient...");
|
||||
if(len>1024) len=1024;
|
||||
int wlen = rdzclient.write(raw, len);
|
||||
if(wlen != len) {
|
||||
Serial.println("Writing rdzClient not OK, closing connection");
|
||||
rdzclient.stop();
|
||||
rdzclient = NULL;
|
||||
}
|
||||
//Serial.println("Writing rdzclient OK");
|
||||
}
|
||||
Serial.print("updateDisplay started... ");
|
||||
if (forceReloadScreenConfig) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20210205";
|
||||
const char *version_id = "devel20210209";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
const int SPIFFS_MINOR=9;
|
||||
|
|
Ładowanie…
Reference in New Issue