Skip to content

Commit

Permalink
bug fix and bump to 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Dec 10, 2024
1 parent c0a5b22 commit 19a9a3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down Expand Up @@ -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."
Expand All @@ -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"
8 changes: 4 additions & 4 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
);
}
}
Expand Down

0 comments on commit 19a9a3e

Please sign in to comment.