Update gitignore, fix bug in combining delay events

master
Ashley N. 2023-08-25 14:16:16 -04:00
parent 38e5cfaf18
commit 9f9d54d1fd
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/target
Cargo.lock
.vscode

View File

@ -391,7 +391,7 @@ pub fn compact_delays( events: Vec<EchoEvent> ) -> Result<Vec<EchoEvent>, Box<dy
let mut current_sequence: Vec<EchoEvent> = Vec::new();
for event in events {
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
current_sequence.push( event );
} else {