@@ -543,7 +543,7 @@ int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset, void* buf,
543
543
}
544
544
} else if (cluster == EEPROMFLIP_CLUSTER_START ) {
545
545
uint32_t address = (((uint32_t )cluster - (EEPROMFLIP_CLUSTER_START )) * CLUSTER_SIZE ) + (cluster_offset * SECTOR_SIZE );
546
- ReadEepromData (address / 64 , buf );
546
+ ReadEepromData (address / 8 , buf );
547
547
} else if (cluster >= FLASHRAMFLIP_CLUSTER_START ) {
548
548
// Read SRAM/FRAM -- check if the cart responds to Flashram info request first, if not treat as SRAM.
549
549
// Also support Dezaemon's banked SRAM.
@@ -589,7 +589,7 @@ int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset, void* buf,
589
589
590
590
} else if (cluster == EEPROM_CLUSTER_START ) {
591
591
uint32_t address = (((uint32_t )cluster - (FLASHRAM_CLUSTER_START )) * CLUSTER_SIZE ) + (cluster_offset * SECTOR_SIZE );
592
- ReadEepromData (address / 64 , buf );
592
+ ReadEepromData (address / 8 , buf );
593
593
}
594
594
}
595
595
}
@@ -649,7 +649,7 @@ int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t*
649
649
return 512 ; // Not writable.
650
650
} else if (cluster == EEPROMFLIP_CLUSTER_START ) {
651
651
uint32_t address = (((uint32_t )cluster - (EEPROMFLIP_CLUSTER_START )) * CLUSTER_SIZE ) + (cluster_offset * SECTOR_SIZE );
652
- WriteEepromData (address / 64 , buffer );
652
+ WriteEepromData (address / 8 , buffer );
653
653
} else if ((cluster >= FLASHRAMFLIP_CLUSTER_START ) && (cluster < FLASHRAMFLIP_CLUSTER_START + 4 )) {
654
654
// Read SRAM/FRAM -- check if the cart responds to Flashram info request first, if not treat as SRAM.
655
655
// Also support Dezaemon's banked SRAM.
@@ -679,7 +679,7 @@ int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t*
679
679
680
680
} else if (cluster == EEPROM_CLUSTER_START ) {
681
681
uint32_t address = (((uint32_t )cluster - (FLASHRAM_CLUSTER_START )) * CLUSTER_SIZE ) + (cluster_offset * SECTOR_SIZE );
682
- WriteEepromData (address / 64 , buffer );
682
+ WriteEepromData (address / 8 , buffer );
683
683
}
684
684
}
685
685
}
0 commit comments