Skip to content

Commit

Permalink
Save 152 bytes using uint8_t for command indices
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 5, 2016
1 parent 0d4ff0c commit b114b6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ bool axis_homed[3] = { false };

static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0;

static char* current_command, *current_command_args;
static int cmd_queue_index_r = 0;
static int cmd_queue_index_w = 0;
static int commands_in_queue = 0;
static char command_queue[BUFSIZE][MAX_CMD_SIZE];
static char* current_command, *current_command_args;
static uint8_t cmd_queue_index_r = 0,
cmd_queue_index_w = 0,
commands_in_queue = 0;

#if ENABLED(INCH_MODE_SUPPORT)
float linear_unit_factor = 1.0;
Expand Down

0 comments on commit b114b6a

Please sign in to comment.