Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes for AD2.pm and New Harmon Kardon receiver module. #569

Merged
merged 6 commits into from
Jan 3, 2016

Conversation

waynieack
Copy link
Contributor

No description provided.

Wayne Gatlin added 6 commits December 10, 2015 22:43
1. In the AD2_Output sub set added a set to fix output device control
2. For some reason $Configuration was not working for the sub DefineCmdMsg, I changed it to $::config_parms and its working now
3. In the sub output_cmd I changed "start" from #7 to #8 because #8 is the command to open a relay so it makes sense that it would be 'start'.
4. In the partition sub set, it seems to always use the old "cmd" sub to send message and I was getting a invalid password. I changed it to always use the new set sub.
5. commented "$p_state = lc($p_state);" in the new cmd set sub because the commands didn't match the CmdMsg hash when they were changed to lower case. 
We could also change commands in the CmdMsg hash to lower case which might make more sense so the user code case won't matter. 
6. The partition status was not being updated correctly due to the index function returning a -1, changed the if statement to >= 1 and now the parent object reflects correct "armed" state.
- $main::Serial_Ports{$instance}{'socket'}->write("$cmd");
 +$main::Serial_Ports{$instance}{object}->write("$cmd");
hplato added a commit that referenced this pull request Jan 3, 2016
Various fixes for AD2.pm and New Harmon Kardon receiver module.
@hplato hplato merged commit a4e625c into hollie:master Jan 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants