Skip to content

Commit 19a9a3e

Browse files
committed
bug fix and bump to 0.3.2
1 parent c0a5b22 commit 19a9a3e

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
All notable changes to the `Serial Monitor` crate will be documented in this file.
44

5-
# Unreleased 0.3.0
5+
# Unreleased 0.3.x
6+
7+
# 0.3.2
8+
9+
* fixed display of only one dataset bug
10+
11+
## 0.3.1 - 8.12.2024
612

713
### Added:
814

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "serial-monitor-rust"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2021"
55
authors = ["Linus Leo Stöckli"]
66
description = "Serial Monitor and Plotter written in rust."
@@ -28,7 +28,7 @@ log = "0.4.22"
2828
name = "Serial Monitor"
2929
identifier = "com.hacknus.serial_monitor"
3030
icon = ["./icons/install.png"]
31-
version = "0.3.1"
31+
version = "0.3.2"
3232
copyright = "Copyright (c) hacknus 2023. All rights reserved."
3333
category = "Developer Tool"
3434
short_description = "Serial Monitor and Plotter written in rust."
@@ -42,5 +42,5 @@ dbg-name = false
4242
name = "Serial Monitor"
4343
no-build = false
4444
output = "target/wix/SerialMonitorInstaller.msi"
45-
version = "0.3.1"
45+
version = "0.3.2"
4646
license = "GPL-3.0"

src/gui.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ impl MyApp {
307307
let plot_inner = signal_plot.show(ui, |signal_plot_ui| {
308308
for (i, graph) in graphs.iter().enumerate() {
309309
// this check needs to be here for when we change devices (not very elegant)
310-
if i < self.serial_devices.labels[self.device_idx].len() {
310+
if i < self.labels.len() {
311311
signal_plot_ui.line(
312-
Line::new(PlotPoints::Owned(graph.to_vec())).name(
313-
&self.serial_devices.labels[self.device_idx][i],
314-
),
312+
Line::new(PlotPoints::Owned(graph.to_vec()))
313+
.name(&self.labels[i])
314+
.color(self.colors[i]),
315315
);
316316
}
317317
}

0 commit comments

Comments
 (0)