From c129739394ab90fd6da4660f3dda036d07f86519 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 24 Mar 2019 00:24:39 -0400 Subject: [PATCH] Sequence module is controlled from the UI. Everything runs in the main.js on the main process. The DOM changes when ipc messages are sent from the sequence module to the render process. --- app/lib/ui/seq.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/ui/seq.js b/app/lib/ui/seq.js index aff1538..e5a7079 100644 --- a/app/lib/ui/seq.js +++ b/app/lib/ui/seq.js @@ -27,7 +27,7 @@ seq.listener = function (event, arg) { } else if (typeof arg.step !== 'undefined' && arg.start) { seq.activeStep(arg.step); log.info(`Step ${arg.step} active`, 'SERIAL', true); - } else if (arg.step && arg.stop) { + } else if (typeof arg.step !== 'undefined' && arg.stop) { seq.inactiveAll(); } else if (arg.stop) { log.info('Sequence stopped', 'SERIAL', true);