We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c29ef48 commit e52e8ecCopy full SHA for e52e8ec
docs/05-threadsafe-spi.md
@@ -71,7 +71,7 @@ For a further simplification [Adafruit_BusIO](https://github.com/adafruit/Adafru
71
byte bmp388_read_reg(byte const reg_addr)
72
{
73
/* REG_ADDR | DUMMY_BYTE | REG_VAL is on SDO */
74
- byte write_buffer[2] = {static_cast<byte>(0x80 | reg_addr), 0};
+ byte write_buffer[2] = {0x80 | reg_addr, 0};
75
byte read_buffer = 0;
76
77
bmp388.spi().write_then_read(write_buffer, sizeof(write_buffer), &read_buffer, sizeof(read_buffer));
0 commit comments