Skip to content

Commit

Permalink
drivers: ssd1306: Fix dts read
Browse files Browse the repository at this point in the history
Modified to read dts information.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
  • Loading branch information
KwonTae-young authored and nashif committed Feb 22, 2019
1 parent c478b5b commit ac7751d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/display/ssd1306.c
Expand Up @@ -17,13 +17,13 @@ LOG_MODULE_REGISTER(ssd1306);
#include "ssd1306_regs.h"
#include <display/cfb.h>

#if DT_SOLOMON_SSD1306FB_0_PANEL_SEGMENT_REMAP == 1
#if DT_SOLOMON_SSD1306FB_0_SEGMENT_REMAP == 1
#define SSD1306_PANEL_SEGMENT_REMAP true
#else
#define SSD1306_PANEL_SEGMENT_REMAP false
#endif

#if DT_SOLOMON_SSD1306FB_0_PANEL_COM_INVDIR == 1
#if DT_SOLOMON_SSD1306FB_0_COM_INVDIR == 1
#define SSD1306_PANEL_COM_INVDIR true
#else
#define SSD1306_PANEL_COM_INVDIR false
Expand Down

0 comments on commit ac7751d

Please sign in to comment.