Incrase number of files LowLatencyLoggerMPU6050 SDfat

Hello everyone,
I want to know if it is possible to increase the number of files that can be saved using the example “LowLatencyLoggerMPU6050” (thank you fat16lib ). I did some tests and the maximum number of files is 99. Does anyone know how to increase that number to 999?
Thank you :slight_smile:

void renameBinFile() {
  while (sd.exists(binName)) {
    if (binName[BASE_NAME_SIZE + 1] != '9') {
      binName[BASE_NAME_SIZE + 1]++;
    } else {
      binName[BASE_NAME_SIZE + 1] = '0';
      if (binName[BASE_NAME_SIZE] == '9') {
        error("Can't create file name");
      }
      binName[BASE_NAME_SIZE]++;
    }
  }
  if (!binFile.rename(sd.vwd(), binName)) {
    error("Can't rename file");
    }
  Serial.print(F("File renamed: "));
  Serial.println(binName);
  Serial.print(F("File size: "));
  Serial.print(binFile.fileSize()/512);
  Serial.println(F(" blocks"));
}

fatproblem.png

see https://technet.microsoft.com/en-us/library/cc940351.aspx

.. make subbolders