Skip to content

Commit

Permalink
Bugfix rollingCode and repeat swap (#31)
Browse files Browse the repository at this point in the history
Bugfix, rollingCode and repeat were incorrectly swapped in sendCommand.
  • Loading branch information
BasvanH committed Sep 2, 2023
1 parent 513678a commit f3685d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SomfyRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void SomfyRemote::setup() {

void SomfyRemote::sendCommand(Command command, int repeat) {
const uint16_t rollingCode = rollingCodeStorage->nextCode();
sendCommandWithCode(command, repeat, rollingCode);
sendCommandWithCode(command, rollingCode, repeat);
}

void SomfyRemote::sendCommandWithCode(Command command, uint16_t rollingCode, int repeat) {
Expand Down

0 comments on commit f3685d8

Please sign in to comment.