mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 07:17:16 +00:00
Add Sonoff L1 MusicSync off when a remote button is received
Add Sonoff L1 MusicSync off when a remote button is received (#12930)
This commit is contained in:
parent
51c228cbdb
commit
e1db23b7c5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user