mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-31 23:41:59 +08:00
Update M106 macro for auxiliary fan. fix is by @IntenseWiggling from PR #3133
This commit is contained in:
parent
de0f5c9d1e
commit
1e7300a476
@ -29,7 +29,7 @@ hardware_pwm: false
|
|||||||
[gcode_macro M106]
|
[gcode_macro M106]
|
||||||
gcode:
|
gcode:
|
||||||
{% set fan = 'fan' + (params.P|int if params.P is defined else 0)|string %}
|
{% set fan = 'fan' + (params.P|int if params.P is defined else 0)|string %}
|
||||||
{% set speed = (params.S|int if params.S is defined else 255) %}
|
{% set speed = (params.S|float / 255 if params.S is defined else 1.0) %}
|
||||||
SET_FAN_SPEED FAN={fan} SPEED={speed}
|
SET_FAN_SPEED FAN={fan} SPEED={speed}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user