From fceefa702e0fa9d574c1a3e792289e0dabdcbcb7 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Mon, 5 Aug 2019 22:00:20 +0700
Subject: [PATCH] config.wait_for_release_lock_wait_for_command_ms

---
 config.sample.json | 2 +-
 lib/modem.js       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.sample.json b/config.sample.json
index 1ba9097..832d592 100644
--- a/config.sample.json
+++ b/config.sample.json
@@ -16,6 +16,6 @@
     },
     
     "interval_beetwen_signal_strength_ms": 60000,
+    "wait_for_release_lock_wait_for_command_ms": 2000,
     "disable_delete_inbox_on_startup": false
-    
 }
\ No newline at end of file
diff --git a/lib/modem.js b/lib/modem.js
index 5307d8d..17ed33a 100644
--- a/lib/modem.js
+++ b/lib/modem.js
@@ -303,7 +303,7 @@ async function sendSMS(destination, msg) {
     setTimeout(() => {
         logger.verbose('Releasing command lock');
         mutex.releaseLockWaitForCommand();
-    }, 2000);
+    }, config.wait_for_release_lock_wait_for_command_ms || 2000);
 }
 
 function init() {
-- 
1.9.0