Skip to content

Commit

Permalink
index.js: Tweak undefined error code 9
Browse files Browse the repository at this point in the history
To be consistent with the similarly undefined error code 0.
  • Loading branch information
sjlongland committed Feb 8, 2024
1 parent 469d65c commit 16a14c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
];
Expand Down

0 comments on commit 16a14c1

Please sign in to comment.