Skip to content

Commit f3534f3

Browse files
sebromeroaentinger
andcommitted
Update docs/05-threadsafe-spi.md
Co-authored-by: Alexander Entinger <consulting@lxrobotics.com>
1 parent 5411dde commit f3534f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/05-threadsafe-spi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Note that we are in a parallel programming environment which means that calls to
3333
byte bmp388_read_reg(byte const reg_addr)
3434
{
3535
/* REG_ADDR | DUMMY_BYTE | REG_VAL is on SDO */
36-
byte read_write_buffer[] = {static_cast<byte>(0x80 | reg_addr), 0, 0};
36+
byte read_write_buffer[] = {0x80 | reg_addr, 0, 0};
3737

3838
IoRequest request(read_write_buffer, sizeof(read_write_buffer), nullptr, 0);
3939
IoResponse response = bmp388.transfer(request);

0 commit comments

Comments
 (0)