mirror of
https://github.com/synthetos/g2.git
synced 2026-09-25 00:00:56 +08:00
Fix marlin compatibility bed controls not working.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user