Skip to content

Commit

Permalink
Correct encode16Bit
Browse files Browse the repository at this point in the history
Set the fill param to 4.
  • Loading branch information
souhaib100 committed Aug 21, 2023
1 parent bc61f45 commit 224224c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class Helper {

for (let i = 0; i < text.length; i++) {
const byte = Helper.order(text.substring(i, i + 1));
pdu += this.toStringHex(byte);
pdu += this.toStringHex(byte, 4);
length += 2;
}

Expand Down

0 comments on commit 224224c

Please sign in to comment.