Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/drivers/pwm/pwm_loopback/src/test_pwm_loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ static void test_capture(uint32_t period, uint32_t pulse, enum test_pwm_unit uni

if (flags & PWM_CAPTURE_TYPE_PERIOD) {
zassert_within(period_capture, period, period / 100,
"period capture off by more than 1%");
"period capture off by more than 1%%");
}

if (flags & PWM_CAPTURE_TYPE_PULSE) {
zassert_within(pulse_capture, pulse, pulse / 100,
"pulse capture off by more than 1%");
"pulse capture off by more than 1%%");
}
}

Expand Down Expand Up @@ -272,10 +272,10 @@ ZTEST(pwm_loopback, test_continuous_capture)

if (data.pulse_capture) {
zassert_within(usec, TEST_PWM_PULSE_USEC, TEST_PWM_PULSE_USEC / 100,
"pulse capture off by more than 1%");
"pulse capture off by more than 1%%");
} else {
zassert_within(usec, TEST_PWM_PERIOD_USEC, TEST_PWM_PERIOD_USEC / 100,
"period capture off by more than 1%");
"period capture off by more than 1%%");
}
}
}
Expand Down