mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/mcpwm_capture_getedge_null_deref' into 'master'
Bugfix(MCPWM): Fix dereferencing of a null pointer in function mcpwm_capture_signal_get_edge See merge request espressif/esp-idf!9255
This commit is contained in:
commit
dc22501b47
@ -214,8 +214,9 @@ esp_err_t mcpwm_hal_capture_get_result(mcpwm_hal_context_t *hal, int cap_sig, ui
|
||||
if (out_edge) {
|
||||
*out_edge = mcpwm_ll_get_captured_edge(hal->dev, cap_sig);
|
||||
}
|
||||
*out_count = mcpwm_ll_get_capture_val(hal->dev, cap_sig);
|
||||
|
||||
if (out_count) {
|
||||
*out_count = mcpwm_ll_get_capture_val(hal->dev, cap_sig);
|
||||
}
|
||||
if (mcpwm_ll_get_intr(hal->dev) & sig_intr) {
|
||||
mcpwm_ll_clear_intr(hal->dev, sig_intr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user