When using LittleFS_Program to save data to file. I can only write 127 Bytes to a file. Is that correct?

Which example sketch? LittleFS_Program_Simple_Datalogger-dates ?
On What Teensy? Which version of Teensyduino?
 
To make it simple, I just change the logData() function as follow
void logData()
{
// make a string for assembling the data to log:
String dataString = "";
// if the file is available, write to it:
if (dataFile) {
dataFile.println("12345678");
dataFile.flush();
} else {
// if the file isn't open, pop up an error:
Serial.println("error opening datalog.txt");
}
delay(100); // run at a reasonable not-too-fast speed for testing
}
 
Sorry for above question, I think I may have changed disksize to 64k which may make the above problem. The example has no problem.
 
Back
Top