diff --git a/esp-hal/src/rmt.rs b/esp-hal/src/rmt.rs index 10502fef07..b4582afe33 100644 --- a/esp-hal/src/rmt.rs +++ b/esp-hal/src/rmt.rs @@ -1421,7 +1421,7 @@ where } let last = PulseCode::from(Into::::into(*data.last().unwrap())); - if !(continuous || last.length2 != 0 || last.length1 != 0) { + if !continuous && last.length2 != 0 && last.length1 != 0 { return Err(Error::EndMarkerMissing); }