From 80b4a76d8e0e91aac2db9d1b4c7f27f66a71e182 Mon Sep 17 00:00:00 2001 From: John Green <74153415+johngreen-dev@users.noreply.github.com> Date: Sat, 28 Dec 2024 23:16:07 +0000 Subject: [PATCH] filterExtended would not pass the requested ID's --- src/ESP32SJA1000.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESP32SJA1000.cpp b/src/ESP32SJA1000.cpp index 309e030..affdf2a 100644 --- a/src/ESP32SJA1000.cpp +++ b/src/ESP32SJA1000.cpp @@ -297,7 +297,7 @@ int ESP32SJA1000Class::filter(int id, int mask) int ESP32SJA1000Class::filterExtended(long id, long mask) { id &= 0x1FFFFFFF; - mask &= ~(mask & 0x1FFFFFFF); + mask = ~(mask & 0x1FFFFFFF); modifyRegister(REG_MOD, 0x17, 0x01); // reset