Closed tosik closed 3 years ago
I see, sorry i guess i haven't throughly tested the writing code, but a bad checksum means that the memory card thinks the data sent doesnt match what should have been sent (we dont calculate the checksum, just write the data) and its up to the game to retry writing the data. However as you can see, the script just ignores it and would continue. When i have time later today i will fix the error (more then likely just remove the str (res) as its not clear what i was using that for) and test it just to be sure.
soo on closer inspection, ive already fixed this bug on my fork, and havent issued a pull request since. soo maby head over to https://github.com/TheBlueTroll/memcarduino while i sort out the pull request.
Thank you so much!
Is this line https://github.com/TheBlueTroll/memcarduino/blob/master/memcarduino.py#L287 the fix? i will try to use your forked version.
sure, if you are still having issues be sure to double and triple check that the connections are correct as a bad checksum on writing is not a normal thing, and it happening usually means the memory card is not getting the data OR that the data is corrupt to begin with. it can additionaly mean not enough power on the 3.6 causing the memorycard to become unhappy.
I added sleep in each writing loop then no checksum error occurs. Maybe it is my device problem.
thats...unexpected. usually writes only go as fast as the memcard would allow, or assume a rather slow rate via time outs, where did you add the delays for writing? as i am not sure how that actually results in solving the problem.
In addition, i've fixed another bug i hadn't noticed in relation to the checksumming that may have been the cause all along. ive updated mine again and will begin some more testing to confirm everything works right.
I would like to report an error.
https://github.com/ShendoXT/memcarduino/blob/master/memcarduino.py#L195
This line has an undefined variable
res
.