|
|
@ -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: |
|
|
|