We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3534f3 commit c29ef48Copy full SHA for c29ef48
docs/05-threadsafe-spi.md
@@ -52,7 +52,7 @@ As the use of the `transfer` API might be difficult to grasp there's also a sync
52
byte bmp388_read_reg(byte const reg_addr)
53
{
54
/* REG_ADDR | DUMMY_BYTE | REG_VAL is on SDO */
55
- byte read_write_buffer[] = {static_cast<byte>(0x80 | reg_addr), 0, 0};
+ byte read_write_buffer[] = {0x80 | reg_addr, 0, 0};
56
57
IoRequest request(read_write_buffer, sizeof(read_write_buffer), nullptr, 0);
58
IoResponse response = transfer_and_wait(bmp388, request);
0 commit comments