Skip to content

Commit c29ef48

Browse files
sebromeroaentinger
andcommitted
Update docs/05-threadsafe-spi.md
Co-authored-by: Alexander Entinger <[email protected]>
1 parent f3534f3 commit c29ef48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/05-threadsafe-spi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ As the use of the `transfer` API might be difficult to grasp there's also a sync
5252
byte bmp388_read_reg(byte const reg_addr)
5353
{
5454
/* REG_ADDR | DUMMY_BYTE | REG_VAL is on SDO */
55-
byte read_write_buffer[] = {static_cast<byte>(0x80 | reg_addr), 0, 0};
55+
byte read_write_buffer[] = {0x80 | reg_addr, 0, 0};
5656
5757
IoRequest request(read_write_buffer, sizeof(read_write_buffer), nullptr, 0);
5858
IoResponse response = transfer_and_wait(bmp388, request);

0 commit comments

Comments
 (0)