Browse Source

Fix farm filename when LFN is missing

Alex Voinea 3 years ago
parent
commit
90c0f33bc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/ultralcd.cpp

+ 1 - 1
Firmware/ultralcd.cpp

@@ -3974,7 +3974,7 @@ static void prusa_stat_printinfo()
 	SERIAL_ECHOPGM("][FEM:");
 	SERIAL_ECHO(itostr3(feedmultiply));
 	SERIAL_ECHOPGM("][FNM:");
-	SERIAL_ECHO(card.longFilename);
+	SERIAL_ECHO(card.longFilename[0] ? card.longFilename : card.filename);
 	SERIAL_ECHOPGM("][TIM:");
 	if (starttime != 0)
 	{