Update gitignore, fix bug in combining delay events
parent
38e5cfaf18
commit
9f9d54d1fd
|
@ -1,2 +1,3 @@
|
||||||
/target
|
/target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
.vscode
|
|
@ -391,7 +391,7 @@ pub fn compact_delays( events: Vec<EchoEvent> ) -> Result<Vec<EchoEvent>, Box<dy
|
||||||
let mut current_sequence: Vec<EchoEvent> = Vec::new();
|
let mut current_sequence: Vec<EchoEvent> = Vec::new();
|
||||||
for event in events {
|
for event in events {
|
||||||
if let Some( esf_event_type ) = event.iter().next() {
|
if let Some( esf_event_type ) = event.iter().next() {
|
||||||
if *esf_event_type == ESF_DELAY_SHORT || *esf_event_type == ESF_DELAY_LONG {
|
if *esf_event_type & 0xF0 == ESF_DELAY_SHORT || *esf_event_type == ESF_DELAY_LONG {
|
||||||
// Continue to push delay events into current_sequence
|
// Continue to push delay events into current_sequence
|
||||||
current_sequence.push( event );
|
current_sequence.push( event );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue