Skip to content

Commit

Permalink
play error sound after 3 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 27, 2024
1 parent 34a856f commit 7a1af7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/analyse/src/study/relay/relayCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class RelayCtrl {
}, 4500);
this.redraw();
if (event.error) {
if (this.data.sync.log.slice(-2).every(e => e.error)) site.sound.play('error');
if (this.data.sync.log.slice(-3).every(e => e.error)) site.sound.play('error');
console.warn(`relay synchronisation error: ${event.error}`);
}
},
Expand Down

0 comments on commit 7a1af7e

Please sign in to comment.