1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

[stock128] No variant there!

This commit is contained in:
bsongis 2012-10-30 17:38:44 +00:00
parent 4ae4850820
commit 00390a6fd4
2 changed files with 2 additions and 5 deletions

View file

@ -816,7 +816,7 @@ bool eeLoadGeneral()
if (theFile.readRlc((uint8_t*)&g_eeGeneral, 1) == 1 && g_eeGeneral.version == EEPROM_VER) { if (theFile.readRlc((uint8_t*)&g_eeGeneral, 1) == 1 && g_eeGeneral.version == EEPROM_VER) {
theFile.openRlc(FILE_GENERAL); theFile.openRlc(FILE_GENERAL);
if (theFile.readRlc((uint8_t*)&g_eeGeneral, sizeof(g_eeGeneral)) <= sizeof(EEGeneral)) { if (theFile.readRlc((uint8_t*)&g_eeGeneral, sizeof(g_eeGeneral)) <= sizeof(EEGeneral)) {
#if defined(PCBSTD) #if defined(M64)
if (g_eeGeneral.variant == EEPROM_VARIANT && g_eeGeneral.chkSum == evalChkSum()) { if (g_eeGeneral.variant == EEPROM_VARIANT && g_eeGeneral.chkSum == evalChkSum()) {
return true; return true;
} }

View file

@ -1390,10 +1390,7 @@ DRESULT disk_ioctl (
break; break;
case GET_SECTOR_COUNT : /* Get number of sectors on the disk (DWORD) */ case GET_SECTOR_COUNT : /* Get number of sectors on the disk (DWORD) */
if (Cmd_A41_resp & OCR_SD_CCS) *DWORD*)buff = SD_GET_BLOCKNR();
*(DWORD*)buff = SD_CSD_BLOCKNR_HC(Card_CSD);
else
*(DWORD*)buff = SD_CSD_BLOCKNR(Card_CSD);
res = RES_OK; res = RES_OK;
break; break;