Skip to content

Commit

Permalink
ssd16xx: Enforce a full refresh on first write in case NO_BLANK_ON_INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz committed Aug 18, 2023
1 parent 6616586 commit d5974e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/drivers/display/ssd16xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,12 @@ static int ssd16xx_write(const struct device *dev, const uint16_t x,
const struct ssd16xx_data *data = dev->data;
const bool have_partial_refresh =
config->profiles[SSD16XX_PROFILE_PARTIAL] != NULL;
#ifdef CONFIG_HW75_SSD16XX_NO_BLANK_ON_INIT
const bool partial_refresh = data->controller_inited &&
!data->blanking_on && have_partial_refresh;
#else
const bool partial_refresh = !data->blanking_on && have_partial_refresh;
#endif
const size_t buf_len = MIN(desc->buf_size,
desc->height * desc->width / 8);
int err;
Expand Down

0 comments on commit d5974e8

Please sign in to comment.