Skip to content

Commit 8612fbe

Browse files
sebromeroaentinger
andauthored
Update docs/05-threadsafe-spi.md
Co-authored-by: Alexander Entinger <[email protected]>
1 parent c6b6979 commit 8612fbe

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
@@ -71,7 +71,7 @@ For a further simplification [Adafruit_BusIO](https://github.com/adafruit/Adafru
7171
byte bmp388_read_reg(byte const reg_addr)
7272
{
7373
/* REG_ADDR | DUMMY_BYTE | REG_VAL is on SDO */
74-
byte write_buffer[2] = {static_cast<byte>(0x80 | reg_addr), 0};
74+
byte write_buffer[2] = {0x80 | reg_addr, 0};
7575
byte read_buffer = 0;
7676

7777
bmp388.spi().write_then_read(write_buffer, sizeof(write_buffer), &read_buffer, sizeof(read_buffer));

0 commit comments

Comments
 (0)