Juerd / eq3-max

Yet another thing that talks to the "eQ-3 MAX! Cube Lan Gateway"
Other
34 stars 15 forks source link

shutters and mode for set room temperature + bits and pieces #6

Closed servidge closed 5 years ago

servidge commented 6 years ago

Maybe it's useful. My Perl knowledge is limited so that the Code changes doesn't look pretty but previous tests were successful and it works for me. All just tested with the executable max. I just Changed parts of the Perl modules.

The request contains:

With every start Shutters and probably Buttons still cause errors like: fixed.

Use of uninitialized value $setpoint in bitwise and (&) at /opt/eq3-max-master/bin/../lib/Max.pm line 127, <GEN0> line 8.
Use of uninitialized value $setpoint in bitwise and (&) at /opt/eq3-max-master/bin/../lib/Max.pm line 128, <GEN0> line 8.

They are probably caused by the lines: Lines were in the wrong order

$temp |= !!($setpoint & 0x80) << 8;
$setpoint &= 0x7F;

At the moment i don't have a quick fix for that. Works anyway. fixed.

best regards, Sebastian

Edited the further progress.