minor improvements (display, m10)

This commit is contained in:
Hansi, dl9rdz 2020-12-30 13:57:21 +01:00
parent ad244bc771
commit 6350447f64
1 changed files with 2 additions and 2 deletions

View File

@ -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);