Skip to content

Commit 756ec54

Browse files
author
Ben Leadbetter
committed
chore: Merge branch 'hotfix/0.6.3'
2 parents 1fe0545 + 040ed0f commit 756ec54

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.6.3
2+
* fix: correct delta clock stamp status code
3+
14
# 0.6.2
25
* fix: incorrect status of delta clockstamp tpq message
36

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "midi2"
3-
version = "0.6.2"
3+
version = "0.6.3"
44
description = "Ergonomic, versatile, strong types wrapping MIDI 2.0 message data."
55
edition = "2021"
66
readme = "README.md"
@@ -37,7 +37,7 @@ utility = []
3737
[dependencies]
3838
derive_more = { version = "0.99.17", features = ["from"], default-features = false }
3939
fixed = "1.27.0"
40-
midi2_proc = { version = "0.6.2", path = "midi2_proc" }
40+
midi2_proc = { version = "0.6.3", path = "midi2_proc" }
4141
ux = "0.1.6"
4242

4343
[dev-dependencies]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ You'll want to setup midi2 without default features to compile
156156
without the `std` feature.
157157

158158
```toml
159-
midi2 = { version = "0.6.2", default-features = false, features = ["channel-voice2", "sysex7"], }
159+
midi2 = { version = "0.6.3", default-features = false, features = ["channel-voice2", "sysex7"], }
160160
```
161161

162162
### Generic Representation

midi2_proc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "midi2_proc"
33
description = "Internal procedural macro crate. Only intended for use with midi2"
4-
version = "0.6.2"
4+
version = "0.6.3"
55
edition = "2021"
66
readme = "README.md"
77
license = "MIT OR Apache-2.0"

src/utility.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mod timestamp {
9797
mod delta_clockstamp {
9898
use crate::detail::common_properties;
9999
use crate::utility;
100-
pub const STATUS: u8 = 0b0010;
100+
pub const STATUS: u8 = 0b0100;
101101
#[midi2_proc::generate_message(Via(crate::utility::Utility), FixedSize, MinSizeUmp(1))]
102102
struct DeltaClockstamp {
103103
#[property(common_properties::UmpMessageTypeProperty<{utility::UMP_MESSAGE_TYPE}>)]
@@ -252,6 +252,16 @@ mod tests {
252252

253253
#[test]
254254
fn delta_clock_stamp_try_from() {
255-
DeltaClockstamp::try_from(&[0x0020_0000][..]).unwrap();
255+
DeltaClockstamp::try_from(&[0x0040_0000][..]).unwrap();
256+
}
257+
258+
#[test]
259+
fn delta_clock_stamp_tpq_try_from() {
260+
DeltaClockstampTpq::try_from(&[0x0030_0000][..]).unwrap();
261+
}
262+
263+
#[test]
264+
fn time_stamp_try_from() {
265+
Timestamp::try_from(&[0x0020_0000][..]).unwrap();
256266
}
257267
}

0 commit comments

Comments
 (0)