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 62bafa1 commit c9f2c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ where
}

let last = PulseCode::from(Into::<u32>::into(*data.last().unwrap()));
if !(continuous || last.length2 != 0 || last.length1 != 0) {
if !continuous && last.length2 != 0 && last.length1 != 0 {
return Err(Error::EndMarkerMissing);
}

Expand Down

0 comments on commit c9f2c60

Please sign in to comment.