Browse Source

A few constants where they belong

Scott Lahteine 10 years ago
parent
commit
60598b4cdd
2 changed files with 4 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp
  2. 2
    0
      Marlin/SdFatConfig.h

+ 2
- 2
Marlin/Marlin_main.cpp View File

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

+ 2
- 0
Marlin/SdFatConfig.h View File

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

Loading…
Cancel
Save