Merge "Update to pdl 0.3.0" into main am: cbe01d238c

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3110377

Change-Id: I2fe4ced53f8791c894300ba3b35a3a2d3211f135
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
David Duarte 2024-06-04 00:34:17 +00:00 committed by Automerger Merge Worker
commit ab8f25dbcb

View file

@ -71,7 +71,7 @@ impl State {
let packet_vec: Vec<UciControlPacketHal> = 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)?;
}