diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index 67d7f68..371006e 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -1998,7 +1998,7 @@ void save_log() { myFile.write(sdBuffer, 512); } else { word i = 0; - for (i = 0; i < myLog.available(); i++) { + for (; i < myLog.available(); i++) { sdBuffer[i] = myLog.read(); } myFile.write(sdBuffer, i);