diff options
Diffstat (limited to 'drivers/painter/ili9xxx/qp_ili9341.c')
| -rw-r--r-- | drivers/painter/ili9xxx/qp_ili9341.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/painter/ili9xxx/qp_ili9341.c b/drivers/painter/ili9xxx/qp_ili9341.c index a101b292aa..4ca22d8a73 100644 --- a/drivers/painter/ili9xxx/qp_ili9341.c +++ b/drivers/painter/ili9xxx/qp_ili9341.c | |||
| @@ -48,7 +48,9 @@ __attribute__((weak)) bool qp_ili9341_init(painter_device_t device, painter_rota | |||
| 48 | ILI9XXX_CMD_DISPLAY_ON, 20, 0 | 48 | ILI9XXX_CMD_DISPLAY_ON, 20, 0 |
| 49 | }; | 49 | }; |
| 50 | // clang-format on | 50 | // clang-format on |
| 51 | qp_comms_bulk_command_sequence(device, ili9341_init_sequence, sizeof(ili9341_init_sequence)); | 51 | if (!qp_comms_bulk_command_sequence(device, ili9341_init_sequence, sizeof(ili9341_init_sequence))) { |
| 52 | return false; | ||
| 53 | } | ||
| 52 | 54 | ||
| 53 | // Configure the rotation (i.e. the ordering and direction of memory writes in GRAM) | 55 | // Configure the rotation (i.e. the ordering and direction of memory writes in GRAM) |
| 54 | const uint8_t madctl[] = { | 56 | const uint8_t madctl[] = { |
| @@ -57,9 +59,7 @@ __attribute__((weak)) bool qp_ili9341_init(painter_device_t device, painter_rota | |||
| 57 | [QP_ROTATION_180] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MX | ILI9XXX_MADCTL_MY, | 59 | [QP_ROTATION_180] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MX | ILI9XXX_MADCTL_MY, |
| 58 | [QP_ROTATION_270] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MV | ILI9XXX_MADCTL_MY, | 60 | [QP_ROTATION_270] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MV | ILI9XXX_MADCTL_MY, |
| 59 | }; | 61 | }; |
| 60 | qp_comms_command_databyte(device, ILI9XXX_SET_MEM_ACS_CTL, madctl[rotation]); | 62 | return qp_comms_command_databyte(device, ILI9XXX_SET_MEM_ACS_CTL, madctl[rotation]); |
| 61 | |||
| 62 | return true; | ||
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 65 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
