mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Explicit cast the data to an uint8_t pointer
It is then cast back to uint32_t in the SPI library: 40c159fcf5/libraries/SPI/SPI.cpp (L402)
This commit is contained in:
parent
a68614a2e8
commit
453a4e1f7f
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ void MAX3421e< SPI_SS, INTR >::regWr(uint8_t reg, uint8_t data) {
|
|||
uint32_t c[2]; // The data needs to be aligned to 32-bit
|
||||
c[0] = reg | 0x02;
|
||||
c[1] = data;
|
||||
SPI.writeBytes(c, 2);
|
||||
SPI.writeBytes((uint8_t*)c, 2);
|
||||
#else
|
||||
uint8_t c[2];
|
||||
c[0] = reg | 0x02;
|
||||
|
|
Loading…
Reference in a new issue