mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-28 17:56:21 +02:00
parent
677876a2c0
commit
28b303cac2
3 changed files with 4 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue