16
utFAT / Re: SD Card using demo file print command limited to 4096 byte files
« on: July 05, 2010, 08:16:30 PM »
Mark-
I applied all the patches (except 7a because it would not compile).
With he changes, even the f430_320x240_24.bmp cannot print without the read errors. utasker320x240.bmp runs about 1/2 way through before the read error happens.
I added an extra command to the disk commands called view (DO_VIEW_FILE) which works pretty well except for the read errors.
I'm just adding a view file command to the print file command in debug.c
if (DO_VIEW_FILE == ucType) { // {kevin 1}
fnDisplayBitmap(ucTemp, utFile.usLastReadWriteLength); // {kevin 1} display bmp on tft
} // {kevin 1}
else { // {kevin 1}
for (iLoop = 0; iLoop < utFile.usLastReadWriteLength; iLoop++) {
if ((ucTemp[iLoop] < 0x0a) || (ucTemp[iLoop] > 'z')) {
ucTemp[iLoop] = '.'; // non-printable characters replaced
}
}
fnWrite(DebugHandle, ucTemp, utFile.usLastReadWriteLength); // print the read data buffer
} // {kevin 1}
I applied all the patches (except 7a because it would not compile).
With he changes, even the f430_320x240_24.bmp cannot print without the read errors. utasker320x240.bmp runs about 1/2 way through before the read error happens.
I added an extra command to the disk commands called view (DO_VIEW_FILE) which works pretty well except for the read errors.
I'm just adding a view file command to the print file command in debug.c
if (DO_VIEW_FILE == ucType) { // {kevin 1}
fnDisplayBitmap(ucTemp, utFile.usLastReadWriteLength); // {kevin 1} display bmp on tft
} // {kevin 1}
else { // {kevin 1}
for (iLoop = 0; iLoop < utFile.usLastReadWriteLength; iLoop++) {
if ((ucTemp[iLoop] < 0x0a) || (ucTemp[iLoop] > 'z')) {
ucTemp[iLoop] = '.'; // non-printable characters replaced
}
}
fnWrite(DebugHandle, ucTemp, utFile.usLastReadWriteLength); // print the read data buffer
} // {kevin 1}