Skip to content

Commit 9a3626c

Browse files
Merge pull request #1 from johngreen-dev/patch-1
filterExtended would not pass the requested ID's
2 parents b514e6b + 80b4a76 commit 9a3626c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ESP32SJA1000.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int ESP32SJA1000Class::filter(int id, int mask)
297297
int ESP32SJA1000Class::filterExtended(long id, long mask)
298298
{
299299
id &= 0x1FFFFFFF;
300-
mask &= ~(mask & 0x1FFFFFFF);
300+
mask = ~(mask & 0x1FFFFFFF);
301301

302302
modifyRegister(REG_MOD, 0x17, 0x01); // reset
303303

0 commit comments

Comments
 (0)