Skip to content

Commit

Permalink
Make wait_for_heatup volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 7, 2016
1 parent bd5a825 commit 2ee4e4f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Marlin/Marlin.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ extern float sw_endstop_min[3]; // axis[n].sw_endstop_min
extern float sw_endstop_max[3]; // axis[n].sw_endstop_max
extern bool axis_known_position[3]; // axis[n].is_known
extern bool axis_homed[3]; // axis[n].is_homed
extern bool wait_for_heatup;
extern volatile bool wait_for_heatup;

// GCode support for external objects
bool code_seen(char);
Expand Down
2 changes: 1 addition & 1 deletion Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ uint8_t active_extruder = 0;
// Relative Mode. Enable with G91, disable with G90.
static bool relative_mode = false;

bool wait_for_heatup = true;
volatile bool wait_for_heatup = true;

const char errormagic[] PROGMEM = "Error:";
const char echomagic[] PROGMEM = "echo:";
Expand Down
2 changes: 0 additions & 2 deletions Marlin/ultralcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
extern int absPreheatHPBTemp;
extern int absPreheatFanSpeed;

extern bool wait_for_heatup;

#if ENABLED(FILAMENT_LCD_DISPLAY)
extern millis_t previous_lcd_status_ms;
#endif
Expand Down

0 comments on commit 2ee4e4f

Please sign in to comment.