From c4ad14f2c33e7ced3e8b586d1dfc99ae1e091c48 Mon Sep 17 00:00:00 2001 From: Odin Ugedal Date: Fri, 5 Feb 2021 19:04:27 +0100 Subject: [PATCH] Fix bad merge --- client/services/cardKeyService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/services/cardKeyService.js b/client/services/cardKeyService.js index 76217604..2c4cbbe4 100644 --- a/client/services/cardKeyService.js +++ b/client/services/cardKeyService.js @@ -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) {