Skip to content

Commit

Permalink
Merge pull request #36 from mitchellston/master
Browse files Browse the repository at this point in the history
fix ReferenceError: i is not defined
  • Loading branch information
ruudverheijden authored Sep 14, 2023
2 parents 12cac8b + 7e37e69 commit 0271cfa
Show file tree
Hide file tree
Showing 2 changed files with 828 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/parsePacket.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function _subtractNumberOfSecondsFromDate(date, seconds) {
function _convertHexToAscii(string) {
let output = '';

for (i = 0; i < string.length; i = i + 2) {
for (let i = 0; i < string.length; i = i + 2) {
output = output + String.fromCharCode(parseInt(string.substr(i, 2), 16));
}
return output;
Expand Down
Loading

0 comments on commit 0271cfa

Please sign in to comment.