diff --git a/app/lib/ui/seq.js b/app/lib/ui/seq.js index 138b0f6..388f09b 100644 --- a/app/lib/ui/seq.js +++ b/app/lib/ui/seq.js @@ -18,7 +18,8 @@ class Sequence { ipcRenderer.on(this.id, this.listener.bind(this)); } listener(event, arg) { - //console.log(JSON.stringify(arg)) + let timeStr; + console.log(JSON.stringify(arg)); if (arg.start) { if (typeof arg.loop !== 'undefined' && typeof arg.step !== 'undefined') { this.activeStep(arg.step); @@ -44,6 +45,9 @@ class Sequence { gui.overlay(false); gui.spinner(false); log.info('Sequence stopped', 'SERIAL', true); + log.info(typeof arg.ms); + timeStr = (arg.ms < 2000) ? `${arg.ms}ms` : humanizeDuration(arg.ms); + gui.notify(`SEQUENCE`, `Sequence finished in ${timeStr}`); } } return event.returnValue = true;