Skip to content

Commit

Permalink
Update M106 macro for auxiliary fan. fix is by @IntenseWiggling from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Dec 15, 2023
1 parent de0f5c9 commit 1e7300a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Auxiliary-fan.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
```

0 comments on commit 1e7300a

Please sign in to comment.