mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-29 18:26:21 +02:00
parent
677876a2c0
commit
28b303cac2
3 changed files with 4 additions and 12 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Development Changes
|
# 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
|
## 0.8.150 - 2024-10-02
|
||||||
* fix nullptr exception
|
* fix nullptr exception
|
||||||
* modified MqTT to not publish while not connected
|
* modified MqTT to not publish while not connected
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_PATCH 150
|
#define VERSION_PATCH 151
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t ch;
|
uint8_t ch;
|
||||||
|
|
|
@ -34,13 +34,6 @@ class Communication : public CommQueue<> {
|
||||||
mPrintWholeTrace = printWholeTrace;
|
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) {
|
void addPayloadListener(payloadListenerType cb) {
|
||||||
mCbPayload = cb;
|
mCbPayload = cb;
|
||||||
}
|
}
|
||||||
|
@ -95,9 +88,6 @@ class Communication : public CommQueue<> {
|
||||||
mLocalBuf[i].len = 0;
|
mLocalBuf[i].len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!q->isDevControl)
|
|
||||||
mIsDevControl = false; // reset devcontrol flag
|
|
||||||
|
|
||||||
if(*mSerialDebug)
|
if(*mSerialDebug)
|
||||||
mHeu.printStatus(q->iv);
|
mHeu.printStatus(q->iv);
|
||||||
mHeu.getTxCh(q->iv);
|
mHeu.getTxCh(q->iv);
|
||||||
|
@ -1066,7 +1056,6 @@ class Communication : public CommQueue<> {
|
||||||
Heuristic mHeu;
|
Heuristic mHeu;
|
||||||
uint32_t mLastEmptyQueueMillis = 0;
|
uint32_t mLastEmptyQueueMillis = 0;
|
||||||
bool mPrintSequenceDuration = false;
|
bool mPrintSequenceDuration = false;
|
||||||
bool mIsDevControl = false; // holds if current command is devcontrol
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /*__COMMUNICATION_H__*/
|
#endif /*__COMMUNICATION_H__*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue