Skip to content
Commit d29b98db authored by Sylvio Alves's avatar Sylvio Alves Committed by Anas Nashif
Browse files

drivers: gpio: esp32: check pin number range



As a complement of 7689abee,
which fixed an issue where gpio number could errouneously be
set to a number greater than 32 in DTS, there is also another
situation where driver instance can be configured with a pin number
greater than 32.
This PR adds another check in GPIO driver to confirm
whether the PIN number is within valid bounds.

Signed-off-by: default avatarSylvio Alves <sylvio.alves@espressif.com>
parent c50966ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment