* revert CMT2300A changes #1553
This commit is contained in:
lumapu 2024-04-11 20:37:06 +02:00
parent 58c57524fb
commit c58e29c6a9
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,8 @@
# Development Changes # Development Changes
## 0.8.110 - 2024-04-11
* revert CMT2300A changes #1553
## 0.8.109 - 2024-04-09 ## 0.8.109 - 2024-04-09
* fix hal patch * fix hal patch

View file

@ -13,7 +13,7 @@
//------------------------------------- //-------------------------------------
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 8 #define VERSION_MINOR 8
#define VERSION_PATCH 108 #define VERSION_PATCH 110
//------------------------------------- //-------------------------------------
typedef struct { typedef struct {
uint8_t ch; uint8_t ch;

View file

@ -248,12 +248,14 @@ class Cmt2300a {
} }
CmtStatus tx(uint8_t buf[], uint8_t len) { CmtStatus tx(uint8_t buf[], uint8_t len) {
if(mTxPending)
return CmtStatus::ERR_TX_PENDING;
if(mInRxMode) { if(mInRxMode) {
mInRxMode = false; mInRxMode = false;
if(!cmtSwitchStatus(CMT2300A_GO_STBY, CMT2300A_STA_STBY)) if(!cmtSwitchStatus(CMT2300A_GO_STBY, CMT2300A_STA_STBY))
return CmtStatus::ERR_SWITCH_STATE; return CmtStatus::ERR_SWITCH_STATE;
} }
mTxPending = false; // safety
mSpi.writeReg(CMT2300A_CUS_INT1_CTL, CMT2300A_INT_SEL_TX_DONE); mSpi.writeReg(CMT2300A_CUS_INT1_CTL, CMT2300A_INT_SEL_TX_DONE);