chore: 完善。

This commit is contained in:
2023-05-09 21:57:52 +08:00
parent 2c5ac11579
commit 5ddd704c9d
4 changed files with 87 additions and 83 deletions

View File

@ -123,6 +123,7 @@ impl DisplayManager {
impl Drop for DisplayManager {
fn drop(&mut self) {
if let Some(handler) = self.setting_request_handler.take() {
info!("abort display setting request handler");
handler.abort();
}
}

View File

@ -64,6 +64,9 @@ impl Board {
}
} else if buf[0] == 4 {
let result = volume_setting_request_sender.send(buf[1] as f32 / 100.0);
if let Err(err) = result {
error!("send volume setting request to channel failed: {:?}", err);
}
}
}
Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => {