Skip to content

Commit 7e5fe46

Browse files
Update Inc/MockedDrivers/common.hpp
#534 (comment) Co-authored-by: Jorge Sáez <125664643+jorgesg82@users.noreply.github.com>
1 parent 869883c commit 7e5fe46

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
@@ -41,7 +41,7 @@ typedef enum
4141

4242
#define CLEAR_REG(REG) ((REG) = (0x0))
4343

44-
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
44+
#define WRITE_REG(REG, VAL) ((REG) = static_cast<uint32_t>(VAL))
4545

4646
#define READ_REG(REG) ((REG))
4747

0 commit comments

Comments
 (0)