Skip to content

Commit

Permalink
Cast away const for STM32
Browse files Browse the repository at this point in the history
  • Loading branch information
greiman committed Sep 18, 2017
1 parent 8b8776a commit ce5d0e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ReadCsv/ReadCsv.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int csvReadText(File* file, char* str, size_t size, char delim) {
rtn = ch;
break;
}
if ((n+1) >= size) {
if ((n + 1) >= size) {
// string too long
rtn = -2;
n--;
Expand Down
2 changes: 1 addition & 1 deletion src/SpiDriver/SdSpiSTM32F1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void SdSpiAltDriver::send(const uint8_t* buf , size_t n) {
#if USE_STM32F1_DMAC
pSpi[m_spiPort]->dmaSend(const_cast<uint8*>(buf), n);
#else // #if USE_STM32F1_DMAC
pSpi[m_spiPort]->write(buf, n);
pSpi[m_spiPort]->write(const_cast<uint8*>(buf), n);
#endif // USE_STM32F1_DMAC
}
//-----------------------------------------------------------------------------
Expand Down

0 comments on commit ce5d0e9

Please sign in to comment.