From e1db23b7c58267f63beaed6d30ddcbb29e31114e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 27 Aug 2021 15:50:17 +0200 Subject: [PATCH] Add Sonoff L1 MusicSync off when a remote button is received Add Sonoff L1 MusicSync off when a remote button is received (#12930) --- tasmota/xlgt_05_sonoff_l1.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasmota/xlgt_05_sonoff_l1.ino b/tasmota/xlgt_05_sonoff_l1.ino index 299c054f0..b8b246b70 100644 --- a/tasmota/xlgt_05_sonoff_l1.ino +++ b/tasmota/xlgt_05_sonoff_l1.ino @@ -182,6 +182,11 @@ bool SnfL1SerialInput(void) { snprintf_P(cmnd_dimmer, sizeof(cmnd_dimmer), PSTR(D_CMND_DIMMER " %d"), dimmer); } + else if (!strncmp(token2, "\"mode\"", 6)) { + uint8_t received_mode = atoi(token3); + Settings->sbflag1.sonoff_l1_music_sync = (SONOFF_L1_MODE_SYNC_TO_MUSIC == received_mode); + } + token = strtok_r(nullptr, ",", &end_str); }