From 956ce5804dcc9d0973c9d56c913f950bbaf7e6b9 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Wed, 31 Jul 2019 14:22:37 +0700 Subject: [PATCH] Minors --- lib/modem.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/modem.js b/lib/modem.js index 1e1822b..9a4b34f 100644 --- a/lib/modem.js +++ b/lib/modem.js @@ -1,12 +1,8 @@ 'use strict'; const INTERVAL_BEETWEN_SIGNAL_STRENGTH_MS = 60000; -// const DELIMITER_WAIT_FOR_OK = '\nOK\r\n'; - -const REGEX_WAIT_FOR_OK_OR_ERROR = /\n(?:OK|ERROR)\r\n/; -// const REGEX_WAIT_FOR_OK_OR_ERROR = /\nOK\r\n/; - const MAX_LAST_DATA_AGE_MS = 3 * 60 * 1000; +const REGEX_WAIT_FOR_OK_OR_ERROR = /\n(?:OK|ERROR)\r\n/; const moment = require('moment'); const SerialPort = require('serialport'); -- 1.9.0