Specified the correct SD card type

pull/83/head
Hieromon Ikasamo 6 years ago
parent 25395a0741
commit dc5d4a4dc1
  1. 6
      src/AutoConnectUploadImpl.h

@ -126,13 +126,13 @@ class AutoConnectUploadSD : public AutoConnectUploadHandler {
uint8_t oflag = *mode == 'w' ? FILE_WRITE : FILE_READ; uint8_t oflag = *mode == 'w' ? FILE_WRITE : FILE_READ;
uint8_t sdType = _media->type(); uint8_t sdType = _media->type();
switch (sdType) { switch (sdType) {
case SD_CARD_TYPE_SD1: case sdfat::SD_CARD_TYPE_SD1:
sdVerify = (const char*)"MMC"; sdVerify = (const char*)"MMC";
break; break;
case SD_CARD_TYPE_SD2: case sdfat::SD_CARD_TYPE_SD2:
sdVerify = (const char*)"SDSC"; sdVerify = (const char*)"SDSC";
break; break;
case SD_CARD_TYPE_SDHC: case sdfat::SD_CARD_TYPE_SDHC:
sdVerify = (const char*)"SDHC"; sdVerify = (const char*)"SDHC";
break; break;
default: default:

Loading…
Cancel
Save