From 97b80e52fc8fdf5d7ade1d9968ec8dc9ff34da74 Mon Sep 17 00:00:00 2001 From: Anna Antonenko Date: Sat, 6 Apr 2024 17:47:29 +0300 Subject: [PATCH] fix: FixedLengthSignal::set --- src/rmt.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rmt.rs b/src/rmt.rs index 8bc92f6b989..286fd94f690 100644 --- a/src/rmt.rs +++ b/src/rmt.rs @@ -868,7 +868,9 @@ impl FixedLengthSignal { .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(()) } }