Skip to content

Commit

Permalink
fixed bug with value 10 ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
angea committed Oct 14, 2023
1 parent eb1fcd5 commit 792a14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbud/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function parseDescriptions(descArray) {
if ((0 <= value) && (value <= 9)) {
valueString = value.toString();
}
else if (value > 10) {
else if (value >= 10) {
valueString = "0x" + value.toString(16).toUpperCase();
}
} else if (typeof (value) === "string") {
Expand Down

0 comments on commit 792a14e

Please sign in to comment.