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:
Theo Arends 2021-08-27 15:50:17 +02:00
parent 51c228cbdb
commit e1db23b7c5

View File

@ -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);
}