Smart Poi 3.0.0
WiFi Connected LED POV Poi
Loading...
Searching...
No Matches
checkFileSpace

Checks if a file size exceeds the maximum allowed size on LittleFS.

Checks if a file size exceeds the maximum allowed size on LittleFS.Calculates the maximum allowed file size based on the total available space on LittleFS, reserving 24,000 bytes (maxPX) and some extra buffer (1024 bytes) to prevent running out of space.

Parameters
fileSizeThe size of the file to check.
Returns
True if the file size is within the maximum allowed size, false otherwise.
Note
This function is used to prevent writing files that exceed the maximum allowed size on LittleFS.
Prints an error message to the serial console if the file size exceeds the maximum allowed size. (10000) returns true if the file size is within the maximum allowed size