Use C++ language supported 'nullptr' (#13944)
This commit is contained in:
@@ -165,7 +165,7 @@ void spiSendBlock(uint8_t token, const uint8_t* buf) {
|
||||
#ifdef STM32GENERIC
|
||||
SPI.dmaSend(const_cast<uint8_t*>(buf), 512);
|
||||
#else
|
||||
SPI.transfer((uint8_t*)buf, (uint8_t*)0, 512);
|
||||
SPI.transfer((uint8_t*)buf, nullptr, 512);
|
||||
#endif
|
||||
|
||||
SPI.endTransaction();
|
||||
|
||||
Reference in New Issue
Block a user