Filament sensor cleanup
This commit is contained in:
committed by
Scott Lahteine
parent
dd42831cba
commit
1aa421efe5
@ -340,8 +340,10 @@ namespace ExtUI {
|
||||
#endif
|
||||
}
|
||||
|
||||
extruder_t getActiveTool() {
|
||||
switch (active_extruder) {
|
||||
extruder_t getTool(const uint8_t extruder) {
|
||||
switch (extruder) {
|
||||
case 7: return E7;
|
||||
case 6: return E6;
|
||||
case 5: return E5;
|
||||
case 4: return E4;
|
||||
case 3: return E3;
|
||||
@ -351,6 +353,8 @@ namespace ExtUI {
|
||||
}
|
||||
}
|
||||
|
||||
extruder_t getActiveTool() { return getTool(active_extruder); }
|
||||
|
||||
bool isMoving() { return planner.has_blocks_queued(); }
|
||||
|
||||
bool canMove(const axis_t axis) {
|
||||
|
@ -215,6 +215,7 @@ namespace ExtUI {
|
||||
void setAxisMaxJerk_mm_s(const float, const extruder_t);
|
||||
#endif
|
||||
|
||||
extruder_t getTool(const uint8_t extruder);
|
||||
extruder_t getActiveTool();
|
||||
void setActiveTool(const extruder_t, bool no_move);
|
||||
|
||||
|
Reference in New Issue
Block a user