commit | 4004475e7fbc93f9e845eca7d4bdf36599260d6c | [log] [tgz] |
---|---|---|
author | Stephanos Ioannidis <root@stephanos.io> | Fri Aug 05 18:02:38 2022 +0900 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Aug 05 15:15:34 2022 +0200 |
tree | e408d57c77ea5abd25e54a7f870d82350a9c0659 | |
parent | 1d844bff265765be0f644a8b06d3fd90fe18de98 [diff] |
drivers: timer: nrf_rtc_timer: Fix assert conditions This commit fixes the incomplete assert conditions for the `chan` argument passed to the nRF RTC timer functions. Note that the `chan` argument for this driver is of a **signed** integer type, so it is necessary to check that its value is non-negative. This fixes the warnings generated by the GCC 12 such as: error: array subscript -1 is below array bounds of '...' Signed-off-by: Stephanos Ioannidis <root@stephanos.io>