From 0f74d942886f4b1f468bb82ab384035a5ba4fd42 Mon Sep 17 00:00:00 2001 From: kapacuk Date: Wed, 20 Jun 2018 11:52:51 +0200 Subject: [PATCH] A few minor fixes to be able to compile it on Linux with the latest GCC - Added missing semicolon to the definition of write_data_repeat; - Added missing parameter to release_bus() call - Changed #include to use the lowercase file name --- drivers/gdisp/ST7735/gdisp_lld_ST7735.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gdisp/ST7735/gdisp_lld_ST7735.c b/drivers/gdisp/ST7735/gdisp_lld_ST7735.c index ea1966a5..6946f231 100644 --- a/drivers/gdisp/ST7735/gdisp_lld_ST7735.c +++ b/drivers/gdisp/ST7735/gdisp_lld_ST7735.c @@ -74,7 +74,7 @@ #endif -#include "drivers/gdisp/ST7735/ST7735.h" +#include "drivers/gdisp/ST7735/st7735.h" // Some common routines and macros #define dummy_read(g) { volatile uint16_t dummy; dummy = read_data(g); (void) dummy; } @@ -82,7 +82,7 @@ // Serial write data for fast fill. #ifndef write_data_repeat -#define write_data_repeat(g, data, count) { int i; for (i = 0; i < count; ++i) write_data (g, data) } +#define write_data_repeat(g, data, count) { int i; for (i = 0; i < count; ++i) write_data (g, data); } #endif // Commands list copied from https://github.com/adafruit/Adafruit-ST7735-Library @@ -304,7 +304,7 @@ LLDSPEC void gdisp_lld_control(GDisplay *g) { case powerOff: acquire_bus(g); // not implemented - release_bus(); + release_bus(g); set_backlight(g, 0); break; case powerSleep: