Skip to content

Commit

Permalink
fix bad u8 cast of vbat for mbed v4 (#163)
Browse files Browse the repository at this point in the history
* fix bad u8 cast of vbat for mbed v4

*  bump to 1.5.1
  • Loading branch information
CramBL authored Jan 22, 2025
1 parent 8770969 commit a74d54d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [1.5.1]

### Fixed

- Fix bad `u8` cast for `vbat`. Mbed v4 status log had changes to the log entries and still contained the bad cast that led to `vbat` losing float precision.

## [1.5.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "plotinator3000"
description = "Log viewer app for viewing plots of data from projects such as motor and generator control"
authors = ["SkyTEM Surveys", "Marc Beck König"]
version = "1.5.0"
version = "1.5.1"
edition = "2021"
repository = "https://github.com/luftkode/plotinator3000"
homepage = "https://github.com/luftkode/plotinator3000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ impl StatusLog {
e.timestamp_ns() + startup_timestamp_ns,
(e.fan_on as u8) as f64,
]);
vbat_plot_raw.push([
e.timestamp_ns() + startup_timestamp_ns,
(e.vbat as u8) as f64,
]);
vbat_plot_raw.push([e.timestamp_ns() + startup_timestamp_ns, e.vbat as f64]);
setpoint_plot_raw
.push([e.timestamp_ns() + startup_timestamp_ns, e.setpoint as f64]);

Expand Down

0 comments on commit a74d54d

Please sign in to comment.