From 19a9a3ee05dd196170344ffce1e045f9ae9b938c Mon Sep 17 00:00:00 2001 From: hacknus Date: Tue, 10 Dec 2024 13:04:46 +0100 Subject: [PATCH] bug fix and bump to 0.3.2 --- CHANGELOG.md | 8 +++++++- Cargo.toml | 6 +++--- src/gui.rs | 8 ++++---- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c34fd49..8b1149e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,13 @@ All notable changes to the `Serial Monitor` crate will be documented in this file. -# Unreleased 0.3.0 +# Unreleased 0.3.x + +# 0.3.2 + +* fixed display of only one dataset bug + +## 0.3.1 - 8.12.2024 ### Added: diff --git a/Cargo.toml b/Cargo.toml index c0098c3..e9dbaf4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serial-monitor-rust" -version = "0.3.1" +version = "0.3.2" edition = "2021" authors = ["Linus Leo Stöckli"] description = "Serial Monitor and Plotter written in rust." @@ -28,7 +28,7 @@ log = "0.4.22" name = "Serial Monitor" identifier = "com.hacknus.serial_monitor" icon = ["./icons/install.png"] -version = "0.3.1" +version = "0.3.2" copyright = "Copyright (c) hacknus 2023. All rights reserved." category = "Developer Tool" short_description = "Serial Monitor and Plotter written in rust." @@ -42,5 +42,5 @@ dbg-name = false name = "Serial Monitor" no-build = false output = "target/wix/SerialMonitorInstaller.msi" -version = "0.3.1" +version = "0.3.2" license = "GPL-3.0" \ No newline at end of file diff --git a/src/gui.rs b/src/gui.rs index 409760a..49044b5 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -307,11 +307,11 @@ impl MyApp { let plot_inner = signal_plot.show(ui, |signal_plot_ui| { for (i, graph) in graphs.iter().enumerate() { // this check needs to be here for when we change devices (not very elegant) - if i < self.serial_devices.labels[self.device_idx].len() { + if i < self.labels.len() { signal_plot_ui.line( - Line::new(PlotPoints::Owned(graph.to_vec())).name( - &self.serial_devices.labels[self.device_idx][i], - ), + Line::new(PlotPoints::Owned(graph.to_vec())) + .name(&self.labels[i]) + .color(self.colors[i]), ); } }