Commit 2509f5ac9cbe438e372f782728fe29aa15d64c40
1 parent
134e36cede
Exists in
master
Coba delimiter
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/modem.js
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | |
3 | 3 | const INTERVAL_BEETWEN_SIGNAL_STRENGTH_MS = 60000; |
4 | 4 | const MAX_LAST_DATA_AGE_MS = 3 * 60 * 1000; |
5 | -const REGEX_WAIT_FOR_OK_OR_ERROR = /\n(?:OK|ERROR)\r/; | |
5 | +const REGEX_WAIT_FOR_OK_OR_ERROR = /[\r\n]+(?:OK|ERROR)\r/; | |
6 | 6 | |
7 | 7 | const moment = require('moment'); |
8 | 8 | const SerialPort = require('serialport'); |