Commit 956ce5804dcc9d0973c9d56c913f950bbaf7e6b9
1 parent
56d3775c11
Exists in
master
Minors
Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff
lib/modem.js
1 | 1 | 'use strict'; |
2 | 2 | |
3 | 3 | const INTERVAL_BEETWEN_SIGNAL_STRENGTH_MS = 60000; |
4 | -// const DELIMITER_WAIT_FOR_OK = '\nOK\r\n'; | |
5 | - | |
6 | -const REGEX_WAIT_FOR_OK_OR_ERROR = /\n(?:OK|ERROR)\r\n/; | |
7 | -// const REGEX_WAIT_FOR_OK_OR_ERROR = /\nOK\r\n/; | |
8 | - | |
9 | 4 | const MAX_LAST_DATA_AGE_MS = 3 * 60 * 1000; |
5 | +const REGEX_WAIT_FOR_OK_OR_ERROR = /\n(?:OK|ERROR)\r\n/; | |
10 | 6 | |
11 | 7 | const moment = require('moment'); |
12 | 8 | const SerialPort = require('serialport'); |