Ver código fonte

Silence warning in gcode_D

Scott Lahteine 4 anos atrás
pai
commit
636facf40d
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      Marlin/src/gcode/gcode_d.cpp

+ 2
- 1
Marlin/src/gcode/gcode_d.cpp Ver arquivo

@@ -216,7 +216,8 @@
216 216
         } break;
217 217
 
218 218
         case 102: { // D102 Test SD Read
219
-          card.openFileRead("test.gco");
219
+          char testfile[] = "test.gco";
220
+          card.openFileRead(testfile);
220 221
           if (!card.isFileOpen()) {
221 222
             SERIAL_ECHOLNPAIR("Failed to open test.gco to read.");
222 223
             return;

Carregando…
Cancelar
Salvar