moninj: replace inject lock with async lock
This commit is contained in:
parent
f9c56c2f17
commit
4582e5eced
|
@ -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 _,
|
||||
|
|
Loading…
Reference in New Issue