Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Nov 5, 2024
1 parent 6e93b14 commit 3221128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -1421,7 +1421,7 @@ where
}

let last = PulseCode::from(Into::<u32>::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);
}

Expand Down

0 comments on commit 3221128

Please sign in to comment.