Skip to content
Commit 29deef2d authored by Benjamin Valentin's avatar Benjamin Valentin Committed by Maureen Helm
Browse files

drivers: watchdog: sam0: Check if timeout is valid



The upper limit of the timeout should not be 0.
tests/drivers/watchdog/wdt_basic_api checks for this and fails as the
driver currently only checks that the timout does not exceed the upper
bound.
This also makes it check the lower bound, so that the test passes.

Signed-off-by: default avatarBenjamin Valentin <benjamin.valentin@ml-pa.com>
parent 37d49477
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment