Ok i found the problem, for the people wondering, SdFat is absolutely not thread safe and I used threads so be careful not having a thread running at the same time as your sd code
Hello, I have a bug with the teensy 4.1 I'm using. It always freezes when it has to close a file.
void ChangeSettings(int newSpeed, int newPower) {
dbSerialPrintln(newSpeed);
dbSerialPrintln(newPower);
// Initialize the SD card
if...