Skip to content

Commit

Permalink
backport of esp-rs#402
Browse files Browse the repository at this point in the history
  • Loading branch information
eteq committed May 25, 2024
1 parent 04ad429 commit 6d44ef7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,9 @@ impl<const N: usize> FixedLengthSignal<N> {
.get_mut(index)
.ok_or_else(|| EspError::from(ERR_ERANGE).unwrap())?;

Symbol(*item).update(pair.0, pair.1);
let mut symbol = Symbol(*item);
symbol.update(pair.0, pair.1);
*item = symbol.0;
Ok(())
}
}
Expand Down

0 comments on commit 6d44ef7

Please sign in to comment.