Skip to content

Commit

Permalink
0.8.151
Browse files Browse the repository at this point in the history
* don't interrupt current command by setting a new limit #1757
  • Loading branch information
lumapu committed Oct 3, 2024
1 parent 677876a commit 28b303c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 3 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 0 additions & 11 deletions src/hm/Communication.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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__*/

0 comments on commit 28b303c

Please sign in to comment.