Skip to content

Commit

Permalink
RCSwitch: minor changes in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
xkonni committed Nov 6, 2012
1 parent c4bd1fb commit 4243239
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions RCSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,45 +113,45 @@ char* RCSwitch::getCodeWordB(int nAddressCode, int nChannelCode, bool bStatus) {
/**
* Switch a remote switch on (Type B with two rotary/sliding switches)
*
* @param nAddressCode Number of the switch group (1..4)
* @param nChannelCode Number of the switch itself (1..4)
* @param nGroupNumber Number of the switch group (1..4)
* @param nSwitchNumber Number of the switch itself (1..4)
*/
void RCSwitch::switchOn(int nAddressCode, int nChannelCode) {
printf("switchOn nAddressCode: %d, ChannelCode: %d\n", nAddressCode, nChannelCode);
this->sendTriState( this->getCodeWordB(nAddressCode, nChannelCode, true) );
void RCSwitch::switchOn(int nGroupNumber, int nSwitchNumber) {
printf("switchOn nGroupNumber: %d, SwitchNumber: %d\n", nGroupNumber, nSwitchNumber);
this->sendTriState( this->getCodeWordB(nGroupNumber, nSwitchNumber, true) );
}

/**
* Switch a remote switch off (Type B with two rotary/sliding switches)
*
* @param nAddressCode Number of the switch group (1..4)
* @param nChannelCode Number of the switch itself (1..4)
* @param nGroupNumber Number of the switch group (1..4)
* @param nSwitchNumber Number of the switch itself (1..4)
*/
void RCSwitch::switchOff(int nAddressCode, int nChannelCode) {
printf("switchOff nAddressCode: %d, ChannelCode: %d\n", nAddressCode, nChannelCode);
this->sendTriState( this->getCodeWordB(nAddressCode, nChannelCode, false) );
void RCSwitch::switchOff(int nGroupNumber, int nSwitchNumber) {
printf("switchOff nGroupNumber: %d, SwitchNumber: %d\n", nGroupNumber, nSwitchNumber);
this->sendTriState( this->getCodeWordB(nGroupNumber, nSwitchNumber, false) );
}

/**
* Switch a remote switch on (Type A with 10 pole DIP switches)
*
* @param sGroup Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111")
* @param nChannelCode Number of the switch itself (1..4)
* @param nSwitchNumber Number of the switch itself (1..4)
*/
void RCSwitch::switchOn(char* sGroup, int nChannel) {
printf("switchOn sGroup: %s channel: %d\n", sGroup, nChannel);
this->sendTriState( this->getCodeWordA(sGroup, nChannel, true) );
void RCSwitch::switchOn(char* sGroup, int nSwitchNumber) {
printf("switchOn sGroup: %s channel: %d\n", sGroup, nSwitchNumber);
this->sendTriState( this->getCodeWordA(sGroup, nSwitchNumber, true) );
}

/**
* Switch a remote switch off (Type A with 10 pole DIP switches)
*
* @param sGroup Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111")
* @param nChannelCode Number of the switch itself (1..4)
* @param nSwitchNumber Number of the switch itself (1..4)
*/
void RCSwitch::switchOff(char* sGroup, int nChannel) {
printf("switchOff sGroup: %s channel: %d\n", sGroup, nChannel);
this->sendTriState( this->getCodeWordA(sGroup, nChannel, false) );
void RCSwitch::switchOff(char* sGroup, int nSwitchNumber) {
printf("switchOff sGroup: %s channel: %d\n", sGroup, nSwitchNumber);
this->sendTriState( this->getCodeWordA(sGroup, nSwitchNumber, false) );
}

/**
Expand Down

0 comments on commit 4243239

Please sign in to comment.