From 988b61cfa5addd5f6b283f9cb141552235a6fc58 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 27 May 2020 20:41:55 +0200 Subject: [PATCH] fix clarify condition --- client/src/wiegand_formatutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/wiegand_formatutils.c b/client/src/wiegand_formatutils.c index 4fbd8c0d3..0d58e9d6f 100644 --- a/client/src/wiegand_formatutils.c +++ b/client/src/wiegand_formatutils.c @@ -80,7 +80,7 @@ static void message_datacopy(wiegand_message_t *src, wiegand_message_t *dest) { uint64_t get_linear_field(wiegand_message_t *data, uint8_t firstBit, uint8_t length) { uint64_t result = 0; for (uint8_t i = 0; i < length; i++) { - result = (result << 1) | get_bit_by_position(data, firstBit + i); + result = (result << 1) | (get_bit_by_position(data, firstBit + i)); } return result; }