mc33810 mark for reinit if fails
This commit is contained in:
parent
435b38cd7b
commit
0052b6a2cd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue