drivers: ssd16xx: do not write default value to CTRL1 before update

Do not write default value to CTRL1 register before update.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
Johann Fischer 2019-07-09 17:30:58 +02:00 committed by Maureen Helm
parent 17f7c59c83
commit 06733d53df

View file

@ -209,13 +209,6 @@ static int ssd16xx_update_display(const struct device *dev)
u8_t tmp;
int err;
tmp = SSD16XX_CTRL1_INITIAL_UPDATE_LH;
err = ssd16xx_write_cmd(driver, SSD16XX_CMD_UPDATE_CTRL1,
&tmp, sizeof(tmp));
if (err < 0) {
return err;
}
tmp = (SSD16XX_CTRL2_ENABLE_CLK |
SSD16XX_CTRL2_ENABLE_ANALOG |
SSD16XX_CTRL2_TO_PATTERN |