Skip to content

Commit e52e8ec

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

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
@@ -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)