Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…_effect into develop
  • Loading branch information
julianschill committed Nov 1, 2024
2 parents eea98c8 + a6e609c commit 121c9bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Stop Klipper:

Link the file in the Klipper directory (adjust the paths as needed):

ln -s klipper-led_effect/led_effect.py ~/klipper/klippy/extras/led_effect.py
ln -s klipper-led_effect/src/led_effect.py ~/klipper/klippy/extras/led_effect.py

Start Klipper:

Expand Down
2 changes: 1 addition & 1 deletion src/led_effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ def nextFrame(self, eventtime):
if heaterTarget > 0.0 and heaterCurrent > 0.0:
if (heaterCurrent >= self.effectRate):
if (heaterCurrent <= heaterTarget-2):
s = int(((heaterCurrent - self.effectRate) / heaterTarget) * 200)
s = int(((heaterCurrent - self.effectRate) / (heaterTarget - self.effectRate)) * 200)
s = min(len(self.thisFrame)-1,s)
return self.thisFrame[s]
elif self.effectCutoff > 0:
Expand Down

0 comments on commit 121c9bb

Please sign in to comment.