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() {