Change HD44780 define from RASPBERRY_PI to HD44780.

This commit is contained in:
Jonathan Naylor 2016-03-15 07:53:38 +00:00
parent c698cfb887
commit bf92e1013c
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@
#include "NullDisplay.h"
#include "YSFControl.h"
#if defined(RASPBERRY_PI)
#if defined(HD44780)
#include "HD44780.h"
#endif
@ -550,7 +550,7 @@ void CMMDVMHost::createDisplay()
LogInfo(" Brightness: %u", brightness);
m_display = new CTFTSerial(port, brightness);
#if defined(RASPBERRY_PI)
#if defined(HD44780)
} else if (type == "HD44780") {
unsigned int rows = m_conf.getHD44780Rows();
unsigned int columns = m_conf.getHD44780Columns();

View file

@ -2,7 +2,7 @@
CC = gcc
CXX = g++
CFLAGS = -g -O3 -Wall -std=c++0x -DRASPBERRY_PI -I/usr/local/include
CFLAGS = -g -O3 -Wall -std=c++0x -DHD44780 -I/usr/local/include
LIBS = -lwiringPi
LDFLAGS = -g -L/usr/local/lib