moninj: replace inject lock with async lock

This commit is contained in:
Simon Renblad 2024-11-25 18:03:53 +08:00
parent f9c56c2f17
commit 4582e5eced
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ mod remote_moninj {
}
pub async fn inject(aux_mutex: &Rc<Mutex<bool>>, timer: GlobalTimer, linkno: u8, destination: u8, channel: i32, overrd: i8, value: i8) {
let _lock = aux_mutex.lock();
let _lock = aux_mutex.async_lock().await;
drtioaux_async::send(linkno, &drtioaux_async::Packet::InjectionRequest {
destination: destination,
channel: channel as _,