Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c040f95

Browse files
sd_diskio.cpp: return 0 instead of false when return type != bool (#9075)
1 parent 73dd8a2 commit c040f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎libraries/SD/src/sd_diskio.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ char sdWriteBytes(uint8_t pdrv, const char* buffer, char token)
233233
ardu_sdcard_t * card = s_cards[pdrv];
234234
unsigned short crc = (card->supports_crc)?CRC16(buffer, 512):0xFFFF;
235235
if (!sdWait(pdrv, 500)) {
236-
return false;
236+
return 0;
237237
}
238238

239239
card->spi->write(token);
@@ -424,7 +424,7 @@ unsigned long sdGetSectorsCount(uint8_t pdrv)
424424
{
425425
for (int f = 0; f < 3; f++) {
426426
if(!sdSelectCard(pdrv)) {
427-
return false;
427+
return 0;
428428
}
429429

430430
if (!sdCommand(pdrv, SEND_CSD, 0, NULL)) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /