Skip to content

Commit b2b59ec

Browse files
committed
moved the big mask check macro to header for both impl files to use
1 parent 14e5b0b commit b2b59ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sfTk/sfXM125Regs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
#include <stdint.h>
1616

17+
// Handy helper - check if a bit(s) is set...
18+
19+
#define SF_CHECK_BITS_SET(__value__, __bitmask__) (((__value__) & (__bitmask__)) == __bitmask__)
20+
1721
const uint16_t SFE_XM125_I2C_ADDRESS = 0x52;
1822

1923
/* ****************************** Distance Values ****************************** */

0 commit comments

Comments
 (0)