Skip to content

Commit

Permalink
Route refcell error through defmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 4, 2023
1 parent ffd94bb commit f2c94b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/screens/measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl Drawable for EcgScreen {

let (min, max) = self.limits();

let scaler = self.camera.borrow_mut().update(min, max, display);
let scaler = unwrap!(self.camera.try_borrow_mut()).update(min, max, display);

const LINE_STYLE: PrimitiveStyle<BinaryColor> =
PrimitiveStyle::with_stroke(BinaryColor::On, 1);
Expand Down

0 comments on commit f2c94b4

Please sign in to comment.