Merge pull request 'bugfix for patch version' (#7) from bugfix_for_v0.4.1 into main
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

Reviewed-on: #7
This commit is contained in:
Robin Müller 2023-01-14 17:19:22 +01:00
commit 33e9b40c39
2 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
# [unreleased] # [unreleased]
# [v0.4.1] 14.01.2023
## Fixed
- CDS timestamp: The conversion function from the current time were buggy
when specifying picoseconds precision, which could lead to overflow
multiplications and/or incorrect precision fields.
# [v0.4.0] 10.01.2023 # [v0.4.0] 10.01.2023
## Fixed ## Fixed

View File

@ -170,8 +170,8 @@ impl ConversionFromNow {
)); ));
} }
SubmillisPrecision::Picoseconds(_) => { SubmillisPrecision::Picoseconds(_) => {
prec = Some(SubmillisPrecision::Microseconds( prec = Some(SubmillisPrecision::Picoseconds(
(now.subsec_nanos() * 1000) as u16, now.subsec_nanos() * 1000
)); ));
} }
_ => (), _ => (),