From e6988bb3afdf1f63e8e85ad39d22803846ee336c Mon Sep 17 00:00:00 2001 From: Yaacov Zamir Date: Fri, 19 Jan 2018 15:28:07 +0200 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3f90e16..e523834 100644 --- a/README.md +++ b/README.md @@ -217,26 +217,26 @@ var vector = { getHoldingRegister: function(addr, unitID, callback) { // Asynchronous handling (with callback) setTimeout(function() { - callback(addr + 8000); - }, 10); + callback(addr + 8000); + }, 10); }, getCoil: function(addr, unitID) { // Asynchronous handling (with Promises, async/await supported) return new Promise(function(resolve) { - setTimeout(function() { - resolve((addr % 2) === 0); - }, 10); - }); + setTimeout(function() { + resolve((addr % 2) === 0); + }, 10); + }); }, setRegister: function(addr, value, unitID) { // Asynchronous handling supported also here console.log("set register", addr, value, unitID); - return; + return; }, setCoil: function(addr, value, unitID) { // Asynchronous handling supported also here console.log("set coil", addr, value, unitID); - return; + return; } };