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 + errorhandling #8

Closed servidge closed 4 years ago

servidge commented 5 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:

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

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. second Pull request from branch "deb_process_L" and nor my master

Juerd commented 4 years ago

Hi, thanks for taking the time to improve this software and sending in your pull request. Please excuse me for not responding earlier.

I've decided not to merge this PR. There are several aspects that I'm not comfortable with.

I'm not comfortable with:

I have, however, used one of your commits that is an obvious fix, and made a change that should silence a warning that I learned about through your suggestions.

servidge commented 4 years ago

hey, no problem. i also don't always have time and a month is also long for an simple answer. Had written that it might help, even if it was just a little bit but i stated out that i don't have any clue of perl. So i understand the reasons to only take on the helpful part. So no Problem. The do_batstatus only simplified my external query to prevent dying batteries. The further development looks good and keep up the good work!