Browse Source
Disable stopping timer for CMT
breaks communication when enabled. Maybe there's another solution or some bug?
pull/1371/head
rejoe2
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
src/hms/hmsRadio.h
|
@ -163,8 +163,8 @@ class CmtRadio : public Radio { |
|
|
uint8_t status = mCmt.getRx(p.packet, &p.len, 28, &p.rssi); |
|
|
uint8_t status = mCmt.getRx(p.packet, &p.len, 28, &p.rssi); |
|
|
if(CMT_SUCCESS == status) |
|
|
if(CMT_SUCCESS == status) |
|
|
mBufCtrl.push(p); |
|
|
mBufCtrl.push(p); |
|
|
if(p.packet[9] > ALL_FRAMES) // indicates last frame
|
|
|
//if(p.packet[9] > ALL_FRAMES) // indicates last frame
|
|
|
mRadioWaitTime.stopTimeMonitor(); // we got everything we expected and can exit rx mode...
|
|
|
// mRadioWaitTime.stopTimeMonitor(); // we got everything we expected and can exit rx mode...
|
|
|
//optionally instead: mRadioWaitTime.startTimeMonitor(DURATION_PAUSE_LASTFR); // let the inverter first get back to rx mode?
|
|
|
//optionally instead: mRadioWaitTime.startTimeMonitor(DURATION_PAUSE_LASTFR); // let the inverter first get back to rx mode?
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|