tentative fix of M20 misclassification as M10 (untested)
This commit is contained in:
parent
ff5aec544e
commit
1687117bec
|
|
@ -469,7 +469,7 @@ void M10M20::processM10data(uint8_t dt)
|
||||||
if(rxp==2) {
|
if(rxp==2) {
|
||||||
// Update: change type only if valid type information in received data
|
// Update: change type only if valid type information in received data
|
||||||
if(dataptr[0]==0x45 && dataptr[1]==0x20) { isM20 = true; }
|
if(dataptr[0]==0x45 && dataptr[1]==0x20) { isM20 = true; }
|
||||||
else if(/*dataptr[0]==0x64*/ && dataptr[1]==0x9F) { isM20 = false; }
|
else if(/*dataptr[0]==0x64 &&*/ dataptr[1]==0x9F) { isM20 = false; }
|
||||||
}
|
}
|
||||||
if(isM20) {
|
if(isM20) {
|
||||||
if(rxp>=M20_FRAMELEN) {
|
if(rxp>=M20_FRAMELEN) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue