ili9481: Add missing braces
This commit is contained in:
parent
f669a09b19
commit
dcff9a7f11
|
@ -114,7 +114,9 @@ void ili9481_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * col
|
|||
uint8_t *mybuf;
|
||||
do {
|
||||
mybuf = (uint8_t *) heap_caps_malloc(3 * size * sizeof(uint8_t), MALLOC_CAP_DMA);
|
||||
if (mybuf == NULL) LV_LOG_WARN("Could not allocate enough DMA memory!");
|
||||
if (mybuf == NULL) {
|
||||
LV_LOG_WARN("Could not allocate enough DMA memory!");
|
||||
}
|
||||
} while (mybuf == NULL);
|
||||
|
||||
uint32_t LD = 0;
|
||||
|
@ -189,11 +191,13 @@ static void ili9481_send_color(void * data, uint16_t length)
|
|||
|
||||
static void ili9481_set_orientation(uint8_t orientation)
|
||||
{
|
||||
#if (LV_USE_LOG == 1)
|
||||
const char *orientation_str[] = {
|
||||
"PORTRAIT", "PORTRAIT_INVERTED", "LANDSCAPE", "LANDSCAPE_INVERTED"
|
||||
};
|
||||
|
||||
LV_LOG_INFO("Display orientation: %s", orientation_str[orientation]);
|
||||
#endif
|
||||
|
||||
uint8_t data[] = {0x48, 0x4B, 0x28, 0x2B};
|
||||
ili9481_send_cmd(ILI9481_CMD_MEMORY_ACCESS_CONTROL);
|
||||
|
|
Loading…
Reference in a new issue