kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
minor improvements (display, m10)
rodzic
ad244bc771
commit
6350447f64
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue