minor improvements (display, m10)

pull/63/head
Hansi, dl9rdz 2020-12-30 13:57:21 +01:00
rodzic ad244bc771
commit 6350447f64
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -387,13 +387,13 @@ void M10M20::processM10data(uint8_t dt)
// 45 20 7x => M20
if(rxp==2 && dataptr[0]==0x45 && dataptr[1]==0x20) { isM20 = true; }
if(isM20) {
memcpy(sonde.si()->typestr, "M20", 4);
memcpy(sonde.si()->typestr, "M20 ", 5);
if(rxp>=M20_FRAMELEN) {
rxsearching = true;
haveNewFrame = decodeframeM20(dataptr);
}
} else {
memcpy(sonde.si()->typestr, "M10", 4);
memcpy(sonde.si()->typestr, "M10 ", 5);
if(rxp>=M10_FRAMELEN) {
rxsearching = true;
haveNewFrame = decodeframeM10(dataptr);