Skip to content

Commit

Permalink
Fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
odinuge committed Feb 5, 2021
1 parent 3db3f16 commit c4ad14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/services/cardKeyService.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Usage: scanCard(123) // where 123 is the cardId `);
// Keep reading bytes until the "end" byte is sent
// The "end" byte is 0xbb
while (!finished) {
const { value } = await $rootScope.serialReader.read();
const { value } = await $rootScope.serialDevice.reader.read();
for (let i = 0; i < value.length; i++) {
// First byte in a message should be 170, otherwise ignore and keep on going
if (message.length === 0 && value[i] !== 170) {
Expand Down

0 comments on commit c4ad14f

Please sign in to comment.