Handle negative value

This commit is contained in:
Hiroaki Yutani 2025-05-05 12:41:20 +09:00
parent 9fee43f2bd
commit a97be9c740

View File

@ -88,8 +88,8 @@ impl<'d, T: Instance, const SM: usize> PioEncoder<'d, T, SM> {
Self { sm }
}
pub async fn read(&mut self) -> u32 {
self.sm.get_rxf_entry(0)
pub async fn read(&mut self) -> i32 {
self.sm.get_rxf_entry(0) as i32
}
}