Handle negative value
This commit is contained in:
parent
9fee43f2bd
commit
a97be9c740
@ -88,8 +88,8 @@ impl<'d, T: Instance, const SM: usize> PioEncoder<'d, T, SM> {
|
|||||||
Self { sm }
|
Self { sm }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn read(&mut self) -> u32 {
|
pub async fn read(&mut self) -> i32 {
|
||||||
self.sm.get_rxf_entry(0)
|
self.sm.get_rxf_entry(0) as i32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user