cppchecker

This commit is contained in:
iceman1001 2021-02-24 00:29:50 +01:00
commit 9395f8c8ac

View file

@ -200,7 +200,7 @@ static uint32_t get_pulse_length(edge_detection_t edge) {
static bool check_pulse_length(uint32_t pl, uint32_t length) {
// check if pulse length <pl> corresponds to given length <length>
return ((pl >= (length - EM4X70_T_TAG_TOLERANCE)) & (pl <= (length + EM4X70_T_TAG_TOLERANCE)));
return ((pl >= (length - EM4X70_T_TAG_TOLERANCE)) && (pl <= (length + EM4X70_T_TAG_TOLERANCE)));
}
static void em4x70_send_bit(bool bit) {