sanni / cartreader

A shield for the Arduino Mega that can back up video game cartridges.
GNU General Public License v3.0
2.23k stars 226 forks source link

fix reading mapping > 5 causes crc 0x0000000 #924

Closed smesgr9000 closed 7 months ago

smesgr9000 commented 7 months ago

With my hw5 I have an issue dumping C64 carts with mappings of 6 or higher resulting in message "crc 0x0000000" with an empty file on sd card. I think the controller has an issue with declaring a variable inside the case statement but without its own scope. Afaik this should be solved by the compiler or result into an error at compiler stage. With the additional scoping the code works fine for me.