looked at the language server

This commit is contained in:
Andy Killorin 2024-12-09 17:02:32 -05:00
parent 860e49de9d
commit 2a8dfcee67
Signed by: ank
GPG key ID: 23F9463ECB67FE8C
2 changed files with 2 additions and 2 deletions

View file

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

View file

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