From 3221128696569365d13cc98f397819162dd880ae Mon Sep 17 00:00:00 2001 From: bjoernQ Date: Tue, 5 Nov 2024 15:14:57 +0100 Subject: [PATCH] Fix --- esp-hal/src/rmt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp-hal/src/rmt.rs b/esp-hal/src/rmt.rs index 5ddf93068d..10502fef07 100644 --- a/esp-hal/src/rmt.rs +++ b/esp-hal/src/rmt.rs @@ -87,7 +87,7 @@ use core::{ }; use embassy_sync::waitqueue::AtomicWaker; -use enumset::{EnumSet, EnumSetType, __internal::EnumSetTypeRepr}; +use enumset::{EnumSet, EnumSetType}; use fugit::HertzU32; use crate::{ @@ -1421,7 +1421,7 @@ where } let last = PulseCode::from(Into::::into(*data.last().unwrap())); - if !(continuous || last.length2.is_empty() || last.length1.is_empty()) { + if !(continuous || last.length2 != 0 || last.length1 != 0) { return Err(Error::EndMarkerMissing); }