From c9f2c608ab947c2f14bfbbb6bec7fb3758894114 Mon Sep 17 00:00:00 2001 From: bjoernQ Date: Tue, 5 Nov 2024 15:59:02 +0100 Subject: [PATCH] Fix --- esp-hal/src/rmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }