mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-18 00:37:13 +02:00
fix MI chashes
+ fix some lost debug messages
This commit is contained in:
parent
9b250c5385
commit
53f25629a6
5 changed files with 20 additions and 7 deletions
|
@ -1,5 +1,9 @@
|
|||
# Development Changes
|
||||
|
||||
## 0.7.34 - 2023-08-15
|
||||
* fix MI chrashes
|
||||
* fix some lost debug messages
|
||||
|
||||
## 0.7.33 - 2023-08-15
|
||||
* add alarms overview to WebGui #608
|
||||
* fix webGui total values #1084
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//-------------------------------------
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 7
|
||||
#define VERSION_PATCH 33
|
||||
#define VERSION_PATCH 34
|
||||
|
||||
//-------------------------------------
|
||||
typedef struct {
|
||||
|
|
|
@ -485,7 +485,9 @@ class Inverter {
|
|||
rec->length = (uint8_t)(HMS1CH_LIST_LEN);
|
||||
rec->assign = (byteAssign_t *)hms1chAssignment;
|
||||
rec->pyldLen = HMS1CH_PAYLOAD_LEN;
|
||||
}
|
||||
} else if(IV_MI == ivGen) {
|
||||
rec->length = (uint8_t)(HM1CH_LIST_LEN);
|
||||
rec->assign = (byteAssign_t *)hm1chAssignment;}
|
||||
channels = 1;
|
||||
}
|
||||
else if (INV_TYPE_2CH == type) {
|
||||
|
@ -497,7 +499,9 @@ class Inverter {
|
|||
rec->length = (uint8_t)(HMS2CH_LIST_LEN);
|
||||
rec->assign = (byteAssign_t *)hms2chAssignment;
|
||||
rec->pyldLen = HMS2CH_PAYLOAD_LEN;
|
||||
}
|
||||
} else if(IV_MI == ivGen) {
|
||||
rec->length = (uint8_t)(HM1CH_LIST_LEN);
|
||||
rec->assign = (byteAssign_t *)hm2chAssignment; }
|
||||
channels = 2;
|
||||
}
|
||||
else if (INV_TYPE_4CH == type) {
|
||||
|
@ -509,7 +513,9 @@ class Inverter {
|
|||
rec->length = (uint8_t)(HMS4CH_LIST_LEN);
|
||||
rec->assign = (byteAssign_t *)hms4chAssignment;
|
||||
rec->pyldLen = HMS4CH_PAYLOAD_LEN;
|
||||
}
|
||||
} else if(IV_MI == ivGen) {
|
||||
rec->length = (uint8_t)(HM1CH_LIST_LEN);
|
||||
rec->assign = (byteAssign_t *)hm4chAssignment; }
|
||||
channels = 4;
|
||||
}
|
||||
else if (INV_TYPE_6CH == type) {
|
||||
|
|
|
@ -278,9 +278,9 @@ class HmRadio {
|
|||
void initPacket(uint64_t invId, uint8_t mid, uint8_t pid) {
|
||||
if(mSerialDebug) {
|
||||
DPRINT(DBG_VERBOSE, F("initPacket, mid: "));
|
||||
DHEX(mid);
|
||||
DBGPRINT(F(" pid: "));
|
||||
DBGHEXLN(pid);
|
||||
DPRINT(DBG_VERBOSE, String(mid, HEX));
|
||||
DPRINT(DBG_VERBOSE,F(" pid: "));
|
||||
DPRINTLN(DBG_VERBOSE,String(pid, HEX));
|
||||
}
|
||||
memset(mTxBuf, 0, MAX_RF_PAYLOAD_SIZE);
|
||||
mTxBuf[0] = mid; // message id
|
||||
|
|
|
@ -748,6 +748,9 @@ const byteAssign_t InfoAssignment[] = {
|
|||
ac_pow = (int) (ac_pow*9.5);
|
||||
iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) ac_pow/10);
|
||||
|
||||
// update status state-machine,
|
||||
iv->isProducing();
|
||||
|
||||
iv->doCalculations();
|
||||
iv->setQueuedCmdFinished();
|
||||
mStat->rxSuccess++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue