mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +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() {
|
bool loop() {
|
||||||
mCmt.loop();
|
mCmt.loop();
|
||||||
|
|
||||||
if(!mIrqRcvd)
|
if(0x00 != mIrqRcvd)
|
||||||
return false;
|
return false;
|
||||||
mIrqRcvd = false;
|
mIrqRcvd--;
|
||||||
getRx();
|
getRx();
|
||||||
mCmt.goRx();
|
mCmt.goRx();
|
||||||
return true;
|
return true;
|
||||||
|
@ -53,7 +53,7 @@ class CmtRadio {
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleIntr(void) {
|
void handleIntr(void) {
|
||||||
mIrqRcvd = true;
|
mIrqRcvd++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void enableDebug() {
|
void enableDebug() {
|
||||||
|
@ -130,7 +130,7 @@ class CmtRadio {
|
||||||
mSendCnt = 0;
|
mSendCnt = 0;
|
||||||
mRetransmits = 0;
|
mRetransmits = 0;
|
||||||
mSerialDebug = false;
|
mSerialDebug = false;
|
||||||
mIrqRcvd = false;
|
mIrqRcvd = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void sendSwitchChCmd(const uint64_t *ivId, uint8_t ch) {
|
inline void sendSwitchChCmd(const uint64_t *ivId, uint8_t ch) {
|
||||||
|
@ -183,7 +183,7 @@ class CmtRadio {
|
||||||
uint32_t mDtuSn;
|
uint32_t mDtuSn;
|
||||||
uint8_t mTxBuf[27];
|
uint8_t mTxBuf[27];
|
||||||
bool mSerialDebug;
|
bool mSerialDebug;
|
||||||
bool mIrqRcvd;
|
volatile uint8_t mIrqRcvd;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /*__HMS_RADIO_H__*/
|
#endif /*__HMS_RADIO_H__*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue