From 16a14c14a9e265c2376d917f549cee36d5b8cdd4 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 12f8871..07d3228 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,7 @@ var 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)" ];