From f8a70bbcbcc11a461ac12531ab79f7129bedc3aa Mon Sep 17 00:00:00 2001 From: David Duarte Date: Fri, 31 May 2024 17:32:20 +0000 Subject: [PATCH] Update to pdl 0.3.0 Test: m Change-Id: I78df5c5ee828d418023128ef57428aa6be67ec3a --- uwb/aidl/default/src/uwb_chip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?; }