Browse Source

0.8.110

* revert CMT2300A changes #1553
pull/1586/head
lumapu 9 months ago
parent
commit
c58e29c6a9
  1. 3
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 4
      src/hms/cmt2300a.h

3
src/CHANGES.md

@ -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

2
src/defines.h

@ -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;

4
src/hms/cmt2300a.h

@ -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);

Loading…
Cancel
Save