Check for LV_USE_LOG when logging orientation
This commit is contained in:
parent
dcff9a7f11
commit
bb0e3a1f27
6 changed files with 30 additions and 23 deletions
|
@ -223,11 +223,12 @@ static void ili9163c_set_orientation(uint8_t orientation)
|
|||
{
|
||||
assert(orientation < 4);
|
||||
|
||||
#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, 0x88, 0xA8, 0x68};
|
||||
|
||||
ili9163c_send_cmd(ILI9163C_MADCTL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue