Skip to content

Commit

Permalink
Fix steady PWM light (regression in bulb.c)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbousquet committed Nov 2, 2024
1 parent 21c154a commit 4d6128d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wpc/bulb.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void bulb_init()
// Compute resistance at room temperature from other ratings U, I and T
for (int bulb = 0; bulb < BULB_MAX; bulb++)
{
bulbs[bulb].r0 = 1.0; // Since BULB_R below uses bulbs[bulb].r0
bulbs[bulb].r0 = (bulbs[bulb].rating_u / bulbs[bulb].rating_i) / BULB_R(bulb, bulbs[bulb].rating_T);
}

Expand Down

0 comments on commit 4d6128d

Please sign in to comment.