Browse Source

Clean "fromsd" array is not SDSUPPORT

if not have SDSUPPORT the fromsd array is not necessary
Victor Torre 9 years ago
parent
commit
d43d47da14
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Marlin/Marlin_main.cpp

+ 6
- 1
Marlin/Marlin_main.cpp View File

395
 static bool relative_mode = false;  //Determines Absolute or Relative Coordinates
395
 static bool relative_mode = false;  //Determines Absolute or Relative Coordinates
396
 
396
 
397
 static char cmdbuffer[BUFSIZE][MAX_CMD_SIZE];
397
 static char cmdbuffer[BUFSIZE][MAX_CMD_SIZE];
398
+#ifdef SDSUPPORT
398
 static bool fromsd[BUFSIZE];
399
 static bool fromsd[BUFSIZE];
400
+#endif //!SDSUPPORT
399
 static int bufindr = 0;
401
 static int bufindr = 0;
400
 static int bufindw = 0;
402
 static int bufindw = 0;
401
 static int buflen = 0;
403
 static int buflen = 0;
655
   SERIAL_ECHO(freeMemory());
657
   SERIAL_ECHO(freeMemory());
656
   SERIAL_ECHOPGM(MSG_PLANNER_BUFFER_BYTES);
658
   SERIAL_ECHOPGM(MSG_PLANNER_BUFFER_BYTES);
657
   SERIAL_ECHOLN((int)sizeof(block_t)*BLOCK_BUFFER_SIZE);
659
   SERIAL_ECHOLN((int)sizeof(block_t)*BLOCK_BUFFER_SIZE);
660
+  #ifdef SDSUPPORT
658
   for(int8_t i = 0; i < BUFSIZE; i++)
661
   for(int8_t i = 0; i < BUFSIZE; i++)
659
   {
662
   {
660
     fromsd[i] = false;
663
     fromsd[i] = false;
661
   }
664
   }
665
+  #endif //!SDSUPPORT
662
 
666
 
663
   // loads data from EEPROM if available else uses defaults (and resets step acceleration rate)
667
   // loads data from EEPROM if available else uses defaults (and resets step acceleration rate)
664
   Config_RetrieveSettings();
668
   Config_RetrieveSettings();
764
         return;
768
         return;
765
       }
769
       }
766
       cmdbuffer[bufindw][serial_count] = 0; //terminate string
770
       cmdbuffer[bufindw][serial_count] = 0; //terminate string
767
-
771
+      #ifdef SDSUPPORT
768
       fromsd[bufindw] = false;
772
       fromsd[bufindw] = false;
773
+      #endif //!SDSUPPORT
769
       if(strchr(cmdbuffer[bufindw], 'N') != NULL)
774
       if(strchr(cmdbuffer[bufindw], 'N') != NULL)
770
       {
775
       {
771
         strchr_pointer = strchr(cmdbuffer[bufindw], 'N');
776
         strchr_pointer = strchr(cmdbuffer[bufindw], 'N');

Loading…
Cancel
Save