mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-24 06:16:11 +02:00
handling of reactive power limit
This commit is contained in:
parent
72732ebd2a
commit
406e7fdb8f
2 changed files with 4 additions and 3 deletions
|
@ -169,7 +169,7 @@ class HmRadio {
|
|||
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;
|
||||
if (cmd == ActivePowerContr){
|
||||
if (cmd >= ActivePowerContr && cmd <= PFSet){
|
||||
// 4 bytes control data
|
||||
// Power Limit fix point 10 eg. 30 W --> 0d300 = 0x012c
|
||||
// -1 = 0xffff --> no limit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue