diff --git a/armsrc/em4x50.c b/armsrc/em4x50.c index 869f99394..91294479e 100644 --- a/armsrc/em4x50.c +++ b/armsrc/em4x50.c @@ -362,7 +362,7 @@ static uint32_t get_pulse_length(void) { static bool check_pulse_length(uint32_t pl, int length) { // check if pulse length corresponds to given length - return ((pl >= T0 * (length - EM4X50_TAG_TOLERANCE)) & (pl <= T0 * (length + EM4X50_TAG_TOLERANCE))); + return ((pl >= T0 * (length - EM4X50_TAG_TOLERANCE)) && (pl <= T0 * (length + EM4X50_TAG_TOLERANCE))); } static void em4x50_reader_send_bit(int bit) {