mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-02 16:08:26 +02:00
next improvement
This commit is contained in:
parent
e4f100660b
commit
60bc9dd552
1 changed files with 5 additions and 5 deletions
|
@ -41,9 +41,9 @@ class CmtRadio {
|
|||
bool loop() {
|
||||
mCmt.loop();
|
||||
|
||||
if(!mIrqRcvd)
|
||||
if(0x00 != mIrqRcvd)
|
||||
return false;
|
||||
mIrqRcvd = false;
|
||||
mIrqRcvd--;
|
||||
getRx();
|
||||
mCmt.goRx();
|
||||
return true;
|
||||
|
@ -53,7 +53,7 @@ class CmtRadio {
|
|||
}
|
||||
|
||||
void handleIntr(void) {
|
||||
mIrqRcvd = true;
|
||||
mIrqRcvd++;
|
||||
}
|
||||
|
||||
void enableDebug() {
|
||||
|
@ -130,7 +130,7 @@ class CmtRadio {
|
|||
mSendCnt = 0;
|
||||
mRetransmits = 0;
|
||||
mSerialDebug = false;
|
||||
mIrqRcvd = false;
|
||||
mIrqRcvd = 0;
|
||||
}
|
||||
|
||||
inline void sendSwitchChCmd(const uint64_t *ivId, uint8_t ch) {
|
||||
|
@ -183,7 +183,7 @@ class CmtRadio {
|
|||
uint32_t mDtuSn;
|
||||
uint8_t mTxBuf[27];
|
||||
bool mSerialDebug;
|
||||
bool mIrqRcvd;
|
||||
volatile uint8_t mIrqRcvd;
|
||||
};
|
||||
|
||||
#endif /*__HMS_RADIO_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue