mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-31 15:08:23 +02:00
0.8.5
* fixed endless loop while switching CMT frequency * removed obsolete "retries" field from settings #1224 * fixed crash while defining new invertes #1224 * fixed default frequency settings * added default input power to `400` while adding new inverters * fixed color of wifi RSSI icon #1224
This commit is contained in:
parent
efdac9634f
commit
8ac895f50a
15 changed files with 58 additions and 55 deletions
|
@ -57,11 +57,21 @@ class Communication : public CommQueue<> {
|
|||
mHeu.printStatus(q->iv);
|
||||
mHeu.getTxCh(q->iv);
|
||||
mGotFragment = false;
|
||||
if(NULL == q->iv->radio)
|
||||
cmdDone(true); // can't communicate while radio is not defined!
|
||||
mState = States::START;
|
||||
break;
|
||||
|
||||
case States::START:
|
||||
setTs(mTimestamp);
|
||||
if((IV_HMS == q->iv->ivGen) || (IV_HMT == q->iv->ivGen)) {
|
||||
// frequency was changed during runtime
|
||||
if(q->iv->curCmtFreq != q->iv->config->frequency) {
|
||||
if(q->iv->radio->switchFrequencyCh(q->iv, q->iv->curCmtFreq, q->iv->config->frequency))
|
||||
q->iv->curCmtFreq = q->iv->config->frequency;
|
||||
}
|
||||
}
|
||||
|
||||
if(q->isDevControl) {
|
||||
if(ActivePowerContr == q->cmd)
|
||||
q->iv->powerLimitAck = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue