drivers: display: fix a typo in the ili9340 driver

The typo is inside an __ASSERT which is why the driver is normally OK.

Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
Michael Hope 2020-06-21 19:38:29 +02:00 committed by Anas Nashif
commit d1f4a91183

View file

@ -146,8 +146,8 @@ static int ili9340_write(const struct device *dev, const uint16_t x,
uint16_t write_h; uint16_t write_h;
__ASSERT(desc->width <= desc->pitch, "Pitch is smaller then width"); __ASSERT(desc->width <= desc->pitch, "Pitch is smaller then width");
__ASSERT((desc->pitch * ILI9340_RGB_SIZE * desc->height) <= desc->bu_size, __ASSERT((desc->pitch * ILI9340_RGB_SIZE * desc->height)
"Input buffer to small"); <= desc->buf_size, "Input buffer to small");
LOG_DBG("Writing %dx%d (w,h) @ %dx%d (x,y)", desc->width, desc->height, LOG_DBG("Writing %dx%d (w,h) @ %dx%d (x,y)", desc->width, desc->height,
x, y); x, y);