From 0748a09da4bd399468723b9c0a813250fcf36cbc Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Thu, 8 Feb 2024 16:01:29 +1000 Subject: [PATCH] index.js: Tweak undefined error code 9 To be consistent with the similarly undefined error code 0. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 86bb688..5b31bb3 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,7 @@ const modbusErrorMessages = [ /*code 6=*/"Slave device busy (retry request again later)", /*code 7=*/"Negative acknowledge (slave device cannot perform programming functions)", /*code 8=*/"Memory parity error (slave device detected a parity error in memory)", - /*code 9=*/undefined, + /*code 9=*/"Unknown error", /*code10=*/"Gateway path unavailable (misconfigured gateway)", /*code11=*/"Gateway target device failed to respond (retry request again later)" ];