Fix marlin compatibility bed controls not working.

This commit is contained in:
Rob Giseburt
2017-03-21 22:23:57 -05:00
parent ef84834781
commit 735b9dcad7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1140,7 +1140,7 @@ static stat_t _execute_gcode_block_marlin()
if (gf.S_word) { temp = gv.S_word; }
if (gf.P_word) { temp = gv.P_word; } // we treat them the same, for now
uint8_t tool = (gv.next_action == NEXT_ACTION_MARLIN_SET_EXTRUDER_TEMP) ? cm.gm.tool_select : 2; // heat bed is 2 here, normally 3
uint8_t tool = (gv.next_action == NEXT_ACTION_MARLIN_SET_EXTRUDER_TEMP) ? cm.gm.tool_select : 3;
ritorno(marlin_set_temperature(tool, temp, gf.marlin_wait_for_temp));
gf.P_word = false;
+1 -1
View File
@@ -330,7 +330,7 @@ stat_t marlin_set_temperature(uint8_t tool, float temperature, bool wait) {
if (MarlinSetTempState::Idle != set_temp_state) {
return (STAT_BUFFER_FULL_FATAL); // we shouldn't be here
}
if ((tool < 1) || (tool > 2)) {
if ((tool < 1) || (tool > 3)) {
return STAT_INPUT_VALUE_RANGE_ERROR;
}