Skip to content

Commit 186e2ef

Browse files
committed
Update example
1 parent 2262099 commit 186e2ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() -> ! {
2121
make_metric!(SETTING_ROUNDTRIP: i8 = 0, "SETTING_ROUNDTRIP").unwrap();
2222

2323
// Allow values -1..=7, step by 2, so {-1, 1, 3, 5, 7}
24-
let mut setting = make_setting!(SETTING: i8 = 42, -1..=7, 2).unwrap();
24+
let mut setting = make_setting!(SETTING: i8 = 5, -1..=7, 2).unwrap();
2525

2626
loop {
2727
for i in 0..i32::MAX {
@@ -58,4 +58,4 @@ cargo run ../examples/simple/target/thumbv7em-none-eabihf/debug/simple stm32g474
5858
# Rerun will open with a graph showing all created metrics objects
5959
```
6060

61-
<img width="2050" height="1166" alt="image" src="https://github.com/user-attachments/assets/dcdced90-9130-449f-ae0e-22a92a3dd409" />
61+
<img width="2880" height="1920" alt="image" src="https://github.com/user-attachments/assets/8cf4055f-e85b-4c43-8184-7bee24955829" />

examples/simple/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn main() -> ! {
1818
make_metric!(SETTING_ROUNDTRIP: i8 = 0, "SETTING_ROUNDTRIP").unwrap();
1919

2020
// Allow values -1..=7, step by 2, so {-1, 1, 3, 5, 7}
21-
let mut setting = make_setting!(SETTING: i8 = 42, -1..=7, 2).unwrap();
21+
let mut setting = make_setting!(SETTING: i8 = 5, -1..=7, 2).unwrap();
2222

2323
loop {
2424
for i in 0..i32::MAX {

0 commit comments

Comments
 (0)