Skip to content

Commit

Permalink
Merge pull request #3186 from AnHardt/Fix-KEEPALIVE_STATE
Browse files Browse the repository at this point in the history
Fix KEEPALIVE_STATE
  • Loading branch information
thinkyhead committed Mar 20, 2016
2 parents 32f7574 + b39b540 commit ac4e461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ script:
- sed -i 's/\/\/#define LCM1602/#define LCM1602/g' Marlin/Configuration.h
- rm -rf .build/
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
# Enable FILAMENTCHANGEENABLE
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
- sed -i 's/\/\/#define FILAMENTCHANGEENABLE/#define FILAMENTCHANGEENABLE/g' Marlin/Configuration.h
- rm -rf .build/
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
# Enable filament sensor
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
- sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
Expand Down
3 changes: 2 additions & 1 deletion Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5508,7 +5508,7 @@ inline void gcode_M503() {
delay(100);
LCD_ALERTMESSAGEPGM(MSG_FILAMENTCHANGE);
millis_t next_tick = 0;
KEEPALIVE_STATE(WAIT_FOR_USER);
KEEPALIVE_STATE(PAUSED_FOR_USER);
while (!lcd_clicked()) {
#if DISABLED(AUTO_FILAMENT_CHANGE)
millis_t ms = millis();
Expand Down Expand Up @@ -6028,6 +6028,7 @@ void process_next_command() {

case 105: // M105: Read current temperature
gcode_M105();
KEEPALIVE_STATE(NOT_BUSY);
return; // "ok" already printed

case 109: // M109: Wait for temperature
Expand Down

0 comments on commit ac4e461

Please sign in to comment.