Merge pull request #8591 from SiliconLabs/dev_9.0

Fix crash when pwmio deinit for Silabs's board
This commit is contained in:
Scott Shawcroft 2023-11-13 10:29:25 -08:00 committed by GitHub
commit bb12d36e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ void pwmout_reset(void) {
mcu_tim_pin_obj_t *l_tim = &mcu_tim_list[tim_index];
if (l_tim->pin != NULL) {
sl_pwm_deinit(&pwm_handle[tim_index]);
common_hal_reset_pin(l_tim->pin);
l_tim->pin = NULL;
}
}