[riot-commits] [RIOT-OS/RIOT] 892370: cpu/stm32/qdec: test null callback pointer (#14125)
noreply at github.com
Fri Jul 10 15:06:10 CEST 2020
Author: Gilles DOFFE <g.doffe at gmail.com>
Date: 2020-07-10 (Fri, 10 Jul 2020)
cpu/stm32/qdec: test null callback pointer (#14125)
cpu/stm32/qdec: test if callback pointer is set
Callback pointer is not tested and could result in a hard fault
if the pointer is NULL.
Thus only activate interrupt if a callback provided.
Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>
More information about the commits