diff --git a/uwb/aidl/default/src/uwb_chip.rs b/uwb/aidl/default/src/uwb_chip.rs index 878aa644cf..956cf6cf86 100644 --- a/uwb/aidl/default/src/uwb_chip.rs +++ b/uwb/aidl/default/src/uwb_chip.rs @@ -71,7 +71,7 @@ impl State { let packet_vec: Vec = packet.into(); for hal_packet in packet_vec.into_iter() { serial - .write(&hal_packet.to_vec()) + .write(&hal_packet.encode_to_vec().unwrap()) .map(|written| written as i32) .map_err(|_| binder::StatusCode::UNKNOWN_ERROR)?; }