Browse Source

0.8.151

* don't interrupt current command by setting a new limit #1757
pull/1760/head
lumapu 6 months ago
parent
commit
28b303cac2
  1. 3
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 11
      src/hm/Communication.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes
## 0.8.151 - 2024-10-03
* don't interrupt current command by setting a new limit #1757
## 0.8.150 - 2024-10-02
* fix nullptr exception
* modified MqTT to not publish while not connected

2
src/defines.h

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

11
src/hm/Communication.h

@ -34,13 +34,6 @@ class Communication : public CommQueue<> {
mPrintWholeTrace = printWholeTrace;
}
void addImportant(Inverter<> *iv, uint8_t cmd) {
if(!mIsDevControl) // only reset communication once there is no other devcontrol command
mState = States::IDLE; // cancel current operation
mIsDevControl = true;
CommQueue::addImportant(iv, cmd);
}
void addPayloadListener(payloadListenerType cb) {
mCbPayload = cb;
}
@ -95,9 +88,6 @@ class Communication : public CommQueue<> {
mLocalBuf[i].len = 0;
}
if(!q->isDevControl)
mIsDevControl = false; // reset devcontrol flag
if(*mSerialDebug)
mHeu.printStatus(q->iv);
mHeu.getTxCh(q->iv);
@ -1066,7 +1056,6 @@ class Communication : public CommQueue<> {
Heuristic mHeu;
uint32_t mLastEmptyQueueMillis = 0;
bool mPrintSequenceDuration = false;
bool mIsDevControl = false; // holds if current command is devcontrol
};
#endif /*__COMMUNICATION_H__*/

Loading…
Cancel
Save