* revert CMT2300A changes #1553
@ -1,5 +1,8 @@
# Development Changes
## 0.8.110 - 2024-04-11
## 0.8.109 - 2024-04-09
* fix hal patch
@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 108
#define VERSION_PATCH 110
typedef struct {
uint8_t ch;
@ -248,12 +248,14 @@ class Cmt2300a {
}
CmtStatus tx(uint8_t buf[], uint8_t len) {
if(mTxPending)
return CmtStatus::ERR_TX_PENDING;
if(mInRxMode) {
mInRxMode = false;
if(!cmtSwitchStatus(CMT2300A_GO_STBY, CMT2300A_STA_STBY))
return CmtStatus::ERR_SWITCH_STATE;
mTxPending = false; // safety
mSpi.writeReg(CMT2300A_CUS_INT1_CTL, CMT2300A_INT_SEL_TX_DONE);