BT buttons & disconnect when conflicting with LMS

This commit is contained in:
philippe44
2020-01-02 21:35:39 -08:00
parent dbd2e21cca
commit d0d98c778b
3 changed files with 60 additions and 11 deletions

View File

@@ -108,6 +108,7 @@ static void bt_sink_cmd_handler(bt_sink_cmd_t cmd, ...)
if (decode.state != DECODE_STOPPED) {
LOG_WARN("Cannot use BT sink while LMS is controlling player");
UNLOCK_D;
bt_sink_cmd(BT_SINK_DISCONNECTED);
return;
}