Skip to content
Commit 25dc5fe9 authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Benjamin Cabé
Browse files

drivers: dac: esp32: avoid out-of-range channel ID



Fix channel ID check in dac_esp32_channel_setup as it was allowing to
set up a channel with ID greater than the number of channels.

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent aa838692
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment