better parameter name
This commit is contained in:
parent
2a0d5e4749
commit
5fc0f4dc59
|
@ -21,12 +21,12 @@ void SingleWave::init(pin_state_t *pinStates) {
|
|||
this->pinStates = pinStates;
|
||||
}
|
||||
|
||||
int SingleWave::getState(int index) {
|
||||
return pinStates[index];
|
||||
int SingleWave::getState(int switchIndex) {
|
||||
return pinStates[switchIndex];
|
||||
}
|
||||
|
||||
void SingleWave::setState(int index, int state) {
|
||||
pinStates[index] = state;
|
||||
void SingleWave::setState(int switchIndex, int state) {
|
||||
pinStates[switchIndex] = state;
|
||||
}
|
||||
|
||||
void MultiWave::baseConstructor() {
|
||||
|
|
|
@ -39,8 +39,8 @@ public:
|
|||
* todo: confirm that we only deal with two states here, no magic '-1'?
|
||||
* @return HIGH or LOW state at given index
|
||||
*/
|
||||
int getState(int index);
|
||||
void setState(int index, int state);
|
||||
int getState(int switchIndex);
|
||||
void setState(int switchIndex, int state);
|
||||
|
||||
// todo: make this private by using 'getState' and 'setState' methods
|
||||
pin_state_t *pinStates;
|
||||
|
|
Loading…
Reference in New Issue