This commit is contained in:
parent
e3a0b6ec3d
commit
e534b42fa0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue