Skip to content

Commit 7e42ef9

Browse files
Actually do the change github didn't do :/
1 parent 7e5fe46 commit 7e42ef9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Inc/MockedDrivers/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef enum
3535

3636
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
3737

38-
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
38+
#define CLEAR_BIT(REG, BIT) ((REG) &= = static_cast<uint32_t>(static_cast<uint32_t>(REG) & ~static_cast<uint32_t>(BIT))
3939

4040
#define READ_BIT(REG, BIT) ((REG) & (BIT))
4141

0 commit comments

Comments
 (0)