Pārlūkot izejas kodu

Rename preocess_command to process_next_command

Scott Lahteine 9 gadus atpakaļ
vecāks
revīzija
46d59784ad
2 mainītis faili ar 6 papildinājumiem un 5 dzēšanām
  1. 0
    1
      Marlin/Marlin.h
  2. 6
    4
      Marlin/Marlin_main.cpp

+ 0
- 1
Marlin/Marlin.h Parādīt failu

@@ -113,7 +113,6 @@ FORCE_INLINE void serialprintPGM(const char *str) {
113 113
 }
114 114
 
115 115
 void get_command();
116
-void process_commands();
117 116
 
118 117
 void manage_inactivity(bool ignore_stepper_queue=false);
119 118
 

+ 6
- 4
Marlin/Marlin_main.cpp Parādīt failu

@@ -399,6 +399,8 @@ bool target_direction;
399 399
 //================================ Functions ================================
400 400
 //===========================================================================
401 401
 
402
+void process_next_command();
403
+
402 404
 bool setTargetedHotend(int code);
403 405
 
404 406
 void serial_echopair_P(const char *s_P, float v)         { serialprintPGM(s_P); SERIAL_ECHO(v); }
@@ -697,17 +699,17 @@ void loop() {
697 699
           // Write the string from the read buffer to SD
698 700
           card.write_command(command);
699 701
           if (card.logging)
700
-            process_commands(); // The card is saving because it's logging
702
+            process_next_command(); // The card is saving because it's logging
701 703
           else
702 704
             SERIAL_PROTOCOLLNPGM(MSG_OK);
703 705
         }
704 706
       }
705 707
       else
706
-        process_commands();
708
+        process_next_command();
707 709
 
708 710
     #else
709 711
 
710
-      process_commands();
712
+      process_next_command();
711 713
 
712 714
     #endif // SDSUPPORT
713 715
 
@@ -5178,7 +5180,7 @@ inline void gcode_T() {
5178 5180
  * Process Commands and dispatch them to handlers
5179 5181
  * This is called from the main loop()
5180 5182
  */
5181
-void process_commands() {
5183
+void process_next_command() {
5182 5184
 
5183 5185
   if ((marlin_debug_flags & DEBUG_ECHO)) {
5184 5186
     SERIAL_ECHO_START;

Notiek ielāde…
Atcelt
Saglabāt