Skip to content

Commit

Permalink
drivers: display: ili9xxx: do not delay for reset unless supported
Browse files Browse the repository at this point in the history
Check the return code of mipi_dbi_reset, and do not delay for the reset
wait time unless the mipi controller has issued a hardware reset to the
display.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
  • Loading branch information
danieldegrasse authored and dleach02 committed Feb 2, 2024
1 parent 5b767a0 commit b6feb56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/display/display_ili9xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ static void ili9xxx_hw_reset(const struct device *dev)
{
const struct ili9xxx_config *config = dev->config;

mipi_dbi_reset(config->mipi_dev, ILI9XXX_RESET_PULSE_TIME);
if (mipi_dbi_reset(config->mipi_dev, ILI9XXX_RESET_PULSE_TIME) < 0) {
return;
};
k_sleep(K_MSEC(ILI9XXX_RESET_WAIT_TIME));
}

Expand Down

0 comments on commit b6feb56

Please sign in to comment.