Skip to content

Commit

Permalink
Merge pull request #82 from nsftx/task/CU-869514p5c/SevenGravityGatew…
Browse files Browse the repository at this point in the history
…ay---Wrong-data-in-log

Fix wrong data added to log
  • Loading branch information
dikaso authored Jul 8, 2024
2 parents 1310a7d + a5edd09 commit 97bd2ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugin/barcode-scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ function processKeyEvent(e) {
&& (previousKey.event && (currentTime - previousKey.receivedAt) < (treshold * 2))
&& whitelistedKeys.test(previousKey.event.key)
) {
logger.out('debug', '[GGP] Plugin Barcode: Adding previous key.', e.code, e.key);
logger.out('debug', '[GGP] Plugin Barcode: Append previous key.',
previousKey.event.code,
previousKey.event.key
);
scanResult.code += previousKey.event.key;
previousKey.event = null;
previousKey.receivedAt = 0;
Expand Down

0 comments on commit 97bd2ba

Please sign in to comment.