V30H: Fix MX29L3211 flashing as 16bit in 8bit mode

This commit is contained in:
sanni 2018-01-09 23:36:09 +01:00 committed by GitHub
parent 45ec011087
commit 0ba4923699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -2,8 +2,8 @@
Cartridge Reader for Arduino Mega2560
Author: sanni
Date: 2017-12-20
Version: V30G
Date: 2018-01-09
Version: V30H
SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
@ -35,7 +35,7 @@
infinest - help with GB Memory cart
**********************************************************************************/
char ver[5] = "V30G";
char ver[5] = "V30H";
/******************************************
Define Starting Point
@ -338,7 +338,7 @@ void aboutScreen() {
display.drawBitmap(0, 0, sig, 128, 64, 1);
println_Msg(F("Cartridge Reader"));
println_Msg(F("github.com/sanni"));
print_Msg(F("2017 "));
print_Msg(F("2018 "));
println_Msg(ver);
println_Msg(F(""));
println_Msg(F(""));
@ -456,7 +456,7 @@ void setup() {
// Serial Begin
Serial.begin(9600);
Serial.println(F("Cartridge Reader"));
Serial.println(F("2017 sanni"));
Serial.println(F("2018 sanni"));
Serial.println("");
// LED
rgb.setColor(0, 0, 255);

View File

@ -128,7 +128,7 @@ void flashromMenu8() {
else if (flashromType == 2) {
if (strcmp(flashid, "C2F3") == 0)
writeFlash29F1601();
else if (strcmp(flashid, "C2F1") == 0)
else if ((strcmp(flashid, "C2F1") == 0) || (strcmp(flashid, "C2F9") == 0))
writeFlash29F1610();
else if ((strcmp(flashid, "C2C4") == 0) || (strcmp(flashid, "C2A8") == 0) || (strcmp(flashid, "C2C9") == 0))
writeFlash29LV640();
@ -946,7 +946,6 @@ void writeFlash29LV640() {
// Write current byte
writeByte_Flash(currByte + c, sdBuffer[c]);
// Check if write is complete
//busyCheck29F032(sdBuffer[c]);
busyCheck29LV640(currByte + c, sdBuffer[c]);
}
}