Browse Source

Fixup comments in code_seen

Scott Lahteine 10 years ago
parent
commit
0f1df62389
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -966,8 +966,8 @@ long code_value_long() { return strtol(seen_pointer + 1, NULL, 10); }
966 966
 int16_t code_value_short() { return (int16_t)strtol(seen_pointer + 1, NULL, 10); }
967 967
 
968 968
 bool code_seen(char code) {
969
-  seen_pointer = strchr(current_command_args, code); // +3 since "G0 " is the shortest prefix
970
-  return (seen_pointer != NULL);  //Return True if a character was found
969
+  seen_pointer = strchr(current_command_args, code);
970
+  return (seen_pointer != NULL); // Return TRUE if the code-letter was found
971 971
 }
972 972
 
973 973
 #define DEFINE_PGM_READ_ANY(type, reader)       \

Loading…
Cancel
Save