mc33810 mark for reinit if fails

This commit is contained in:
rusefillc 2023-12-20 08:57:15 -05:00 committed by rusefillc
parent 435b38cd7b
commit 0052b6a2cd
1 changed files with 3 additions and 1 deletions

View File

@ -441,8 +441,10 @@ static THD_FUNCTION(mc33810_driver_thread, p)
if ((chip->cfg == NULL) ||
(chip->drv_state == MC33810_DISABLED) ||
(chip->drv_state == MC33810_FAILED))
(chip->drv_state == MC33810_FAILED)) {
chip->need_init = true;
continue;
}
/* TODO: implement indirect driven gpios */
int ret = chip->update_output_and_diag();