Skip to content

Commit e3433ea

Browse files
author
Ben Leadbetter
committed
fix: correct delta clock stamp status code
1 parent 1fe0545 commit e3433ea

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

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)