added somfy repeat option (#957)

update somfy dependency to fix bug with multiple somfy remotes
This commit is contained in:
Leon Kiefer authored and GitHub committed 2021-05-24 15:09:18 -05:00
1 parent aaf1d17495
commit 18c8524ae0
3 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -67,9 +67,11 @@ void MQTTtoSomfy(char* topicOri, JsonObject& jsonData) {
const String commandData = jsonData["command"];
const Command command = getSomfyCommand(commandData);
const int repeat = jsonData["repeat"] | 4;
EEPROMRollingCodeStorage rollingCodeStorage(EEPROM_ADDRESS_START + remoteIndex * 2);
SomfyRemote somfyRemote(RF_EMITTER_GPIO, somfyRemotes[remoteIndex], &rollingCodeStorage);
somfyRemote.sendCommand(command);
somfyRemote.sendCommand(command, repeat);
# ifdef ZradioCC1101
ELECHOUSE_cc1101.SetRx(receiveMhz); // set Receive on
# endif