mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Cart_Reader.ino: Drop redundant initialisation.
`i` is initialised on the previous line, along with its declaration.
This commit is contained in:
parent
92f8626687
commit
264d83f383
@ -1998,7 +1998,7 @@ void save_log() {
|
|||||||
myFile.write(sdBuffer, 512);
|
myFile.write(sdBuffer, 512);
|
||||||
} else {
|
} else {
|
||||||
word i = 0;
|
word i = 0;
|
||||||
for (i = 0; i < myLog.available(); i++) {
|
for (; i < myLog.available(); i++) {
|
||||||
sdBuffer[i] = myLog.read();
|
sdBuffer[i] = myLog.read();
|
||||||
}
|
}
|
||||||
myFile.write(sdBuffer, i);
|
myFile.write(sdBuffer, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user