From 264d83f383549cc9f6321530ca01eb2d3209b809 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier Date: Sat, 22 Oct 2022 08:22:37 +0000 Subject: [PATCH] Cart_Reader.ino: Drop redundant initialisation. `i` is initialised on the previous line, along with its declaration. --- Cart_Reader/Cart_Reader.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);