Commit e99b0fdd32a64a4959858b6c18c6e5fdd9a2684e
1 parent
30066521a5
Exists in
master
MODEM-TESTER: conditions fix
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
modem-tester.js
... | ... | @@ -40,9 +40,9 @@ function isNotBlacklistedCommand(command) { |
40 | 40 | let [, cmd] = (command || '').trim().split('+'); |
41 | 41 | cmd = (cmd || '').replace(/=.*$/, ''); |
42 | 42 | return !config |
43 | - && !config.modem_tester | |
44 | - && !config.modem_tester.skip_commands | |
45 | - && (config.modem_tester.skip_commands.indexOf(cmd) < 0); | |
43 | + || !config.modem_tester | |
44 | + || !config.modem_tester.skip_commands | |
45 | + || (config.modem_tester.skip_commands.indexOf(cmd) < 0); | |
46 | 46 | } |
47 | 47 | |
48 | 48 | port = new SerialPort(config.modem.device, { baudRate: 115200 }, async (err) => { |