Browse Source

Save 152 bytes using uint8_t for command indices

Scott Lahteine 9 years ago
parent
commit
b114b6a0b3
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp View File

284
 
284
 
285
 static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0;
285
 static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0;
286
 
286
 
287
-static char* current_command, *current_command_args;
288
-static int cmd_queue_index_r = 0;
289
-static int cmd_queue_index_w = 0;
290
-static int commands_in_queue = 0;
291
 static char command_queue[BUFSIZE][MAX_CMD_SIZE];
287
 static char command_queue[BUFSIZE][MAX_CMD_SIZE];
288
+static char* current_command, *current_command_args;
289
+static uint8_t cmd_queue_index_r = 0,
290
+               cmd_queue_index_w = 0,
291
+               commands_in_queue = 0;
292
 
292
 
293
 #if ENABLED(INCH_MODE_SUPPORT)
293
 #if ENABLED(INCH_MODE_SUPPORT)
294
   float linear_unit_factor = 1.0;
294
   float linear_unit_factor = 1.0;

Loading…
Cancel
Save