looked at the language server
This commit is contained in:
parent
860e49de9d
commit
2a8dfcee67
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ pub async fn music_manager(uart: UART1, irqs: Irqs, txp: PIN_20, rxp: PIN_21) ->
|
||||||
play_song("b", Some((index+1) as u8), &mut uart).await;
|
play_song("b", Some((index+1) as u8), &mut uart).await;
|
||||||
},
|
},
|
||||||
MusicCommand::Play(song) => {
|
MusicCommand::Play(song) => {
|
||||||
play_song(song, None, &mut uart).await
|
play_song(&song, None, &mut uart).await
|
||||||
},
|
},
|
||||||
MusicCommand::SetVolume(vol) => {
|
MusicCommand::SetVolume(vol) => {
|
||||||
uart.write_all(b"AT+VOL=").await.unwrap();
|
uart.write_all(b"AT+VOL=").await.unwrap();
|
||||||
|
|
|
@ -73,7 +73,7 @@ pub async fn server_task(stack: embassy_net::Stack<'static>) {
|
||||||
COMMANDS.send(crate::music::MusicCommand::SetVolume(vol)).await;
|
COMMANDS.send(crate::music::MusicCommand::SetVolume(vol)).await;
|
||||||
}
|
}
|
||||||
Ok(Request::Play(song)) => {
|
Ok(Request::Play(song)) => {
|
||||||
COMMANDS.send(crate::music::MusicCommand::Play(song))
|
COMMANDS.send(crate::music::MusicCommand::Play(song)).await;
|
||||||
}
|
}
|
||||||
Err(e) => { info!("parse error: {e}") }
|
Err(e) => { info!("parse error: {e}") }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue