Clear fifos
All checks were successful
Check Build / Test build (push) Successful in 40m30s

This commit is contained in:
hodasemi 2024-08-12 07:18:47 +02:00
parent e3a0b6ec3d
commit e534b42fa0

View file

@ -68,6 +68,7 @@ impl<'d, PIO: Instance, const SM: usize> DhtPio<'d, PIO, SM> {
if timeout <= 0 {
self.sm.restart();
self.sm.clear_fifos();
return Err(DhtError::Timeout);
}