mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-02 10:41:40 +02:00
change default for power limit persistens
This commit is contained in:
parent
56cc481069
commit
3361d5b9bf
1 changed files with 3 additions and 4 deletions
|
@ -161,8 +161,7 @@ class HmRadio {
|
|||
|
||||
void sendControlPacket(uint64_t invId, uint8_t cmd, uint16_t data) {
|
||||
DPRINTLN(DBG_VERBOSE, F("hmRadio.h:sendControlPacket"));
|
||||
// sendCmdPacket(invId, 0x51, 0x80, false); // 0x80 implementation as original DTU code
|
||||
sendCmdPacket(invId, 0x51, 0x81, false);
|
||||
sendCmdPacket(invId, 0x51, 0x80, false); // 0x80 implementation as original DTU code
|
||||
int cnt = 0;
|
||||
mTxBuf[10] = cmd; // cmd --> 0x0b => Type_ActivePowerContr, 0 on, 1 off, 2 restart, 12 reactive power, 13 power factor
|
||||
mTxBuf[10 + (++cnt)] = 0x00;
|
||||
|
@ -177,8 +176,8 @@ class HmRadio {
|
|||
}
|
||||
mTxBuf[10 + (++cnt)] = (data >> 8) & 0xff; // 0x01
|
||||
mTxBuf[10 + (++cnt)] = (data ) & 0xff; // 0x2c
|
||||
// mTxBuf[10 + (++cnt)] = 0x00; // not persistent
|
||||
mTxBuf[10 + (++cnt)] = 0x01; // persistent
|
||||
mTxBuf[10 + (++cnt)] = 0x00; // not persistent
|
||||
//mTxBuf[10 + (++cnt)] = 0x01; // persistent
|
||||
mTxBuf[10 + (++cnt)] = 0x00;
|
||||
}
|
||||
// crc control data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue