Skip to content

Commit

Permalink
Fix compile issue with G38
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 6, 2017
1 parent 678914b commit 11c589c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ script:
- restore_configs
- opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
- opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
- opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP
- opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
- build_marlin
#
# Test MESH_BED_LEVELING feature, with LCD
Expand Down
4 changes: 2 additions & 2 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10528,8 +10528,8 @@ void process_next_command() {

#if ENABLED(G38_PROBE_TARGET)
case 38: // G38.2 & G38.3
if (subcode == 2 || subcode == 3)
gcode_G38(subcode == 2);
if (parser.subcode == 2 || parser.subcode == 3)
gcode_G38(parser.subcode == 2);
break;
#endif

Expand Down
2 changes: 1 addition & 1 deletion Marlin/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ char *GCodeParser::command_ptr,
char GCodeParser::command_letter;
int GCodeParser::codenum;
#if USE_GCODE_SUBCODES
int GCodeParser::subcode;
uint8_t GCodeParser::subcode;
#endif

#if ENABLED(FASTER_GCODE_PARSER)
Expand Down
2 changes: 1 addition & 1 deletion Marlin/gcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class GCodeParser {
static char command_letter; // G, M, or T
static int codenum; // 123
#if USE_GCODE_SUBCODES
static int subcode; // .1
static uint8_t subcode; // .1
#endif

#if ENABLED(DEBUG_GCODE_PARSER)
Expand Down

0 comments on commit 11c589c

Please sign in to comment.