Skip to content

Commit

Permalink
[dif,pwm] Fix unittest
Browse files Browse the repository at this point in the history
The heartbeat mode modules the blink mode. This was fixed in:
  [dif,pwm] Heartbeat mode operates only when blinking enabled.
but the unittest was not updated

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Feb 12, 2025
1 parent d78d08d commit e758c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/device/lib/dif/dif_pwm_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ TEST_F(ConfigChannelTest, HeartbeatModeSuccess) {
{{PWM_PWM_PARAM_0_PHASE_DELAY_0_OFFSET,
channel_config_.phase_delay * phase_cntr_ticks_per_beat_},
{PWM_PWM_PARAM_0_HTBT_EN_0_BIT, 1},
{PWM_PWM_PARAM_0_BLINK_EN_0_BIT, 0}});
{PWM_PWM_PARAM_0_BLINK_EN_0_BIT, 1}});
EXPECT_WRITE32(
PWM_BLINK_PARAM_0_REG_OFFSET,
{{PWM_BLINK_PARAM_0_Y_0_OFFSET,
Expand Down

0 comments on commit e758c6a

Please sign in to comment.