mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-04-06 00:32:05 +02:00
Update M106 macro for auxiliary fan. fix is by @IntenseWiggling from PR #3133
This commit is contained in:
@@ -29,7 +29,7 @@ hardware_pwm: false
|
||||
[gcode_macro M106]
|
||||
gcode:
|
||||
{% 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}
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user