Bladeren bron

A few constants where they belong

Scott Lahteine 10 jaren geleden
bovenliggende
commit
60598b4cdd
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 2
    2
      Marlin/Marlin_main.cpp
  2. 2
    0
      Marlin/SdFatConfig.h

+ 2
- 2
Marlin/Marlin_main.cpp Bestand weergeven

@@ -429,7 +429,7 @@ void enquecommand(const char *cmd)
429 429
     //this is dangerous if a mixing of serial and this happens
430 430
     strcpy(&(cmdbuffer[bufindw][0]),cmd);
431 431
     SERIAL_ECHO_START;
432
-    SERIAL_ECHOPGM("enqueing \"");
432
+    SERIAL_ECHOPGM(MSG_Enqueing);
433 433
     SERIAL_ECHO(cmdbuffer[bufindw]);
434 434
     SERIAL_ECHOLNPGM("\"");
435 435
     bufindw= (bufindw + 1)%BUFSIZE;
@@ -444,7 +444,7 @@ void enquecommand_P(const char *cmd)
444 444
     //this is dangerous if a mixing of serial and this happens
445 445
     strcpy_P(&(cmdbuffer[bufindw][0]),cmd);
446 446
     SERIAL_ECHO_START;
447
-    SERIAL_ECHOPGM("enqueing \"");
447
+    SERIAL_ECHOPGM(MSG_Enqueing);
448 448
     SERIAL_ECHO(cmdbuffer[bufindw]);
449 449
     SERIAL_ECHOLNPGM("\"");
450 450
     bufindw= (bufindw + 1)%BUFSIZE;

+ 2
- 0
Marlin/SdFatConfig.h Bestand weergeven

@@ -115,6 +115,8 @@ uint8_t const SOFT_SPI_SCK_PIN = 13;
115 115
 #define FILENAME_LENGTH 13
116 116
 /** Number of VFAT entries used. Every entry has 13 UTF-16 characters */
117 117
 #define MAX_VFAT_ENTRIES (2)
118
+/** Number of UTF-16 characters per entry */
119
+#define FILENAME_LENGTH 13
118 120
 /** Total size of the buffer used to store the long filenames */
119 121
 #define LONG_FILENAME_LENGTH (FILENAME_LENGTH*MAX_VFAT_ENTRIES+1)
120 122
 #endif  // SdFatConfig_h

Laden…
Annuleren
Opslaan