From 827ba94e160820bd499214e0a7c299ee769e88c2 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 5 Jun 2018 22:46:45 -0500 Subject: [PATCH] Fix a compile warning --- Marlin/ultralcd_st7565_u8glib_VIKI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/ultralcd_st7565_u8glib_VIKI.h b/Marlin/ultralcd_st7565_u8glib_VIKI.h index 04ea274ac7..f523413db0 100644 --- a/Marlin/ultralcd_st7565_u8glib_VIKI.h +++ b/Marlin/ultralcd_st7565_u8glib_VIKI.h @@ -137,7 +137,7 @@ #define ST7565_V0_RATIO(N) ST7565_WRITE_BYTE(0x20 | ((N) & 0x7)) #define ST7565_CONTRAST(N) do{ ST7565_WRITE_BYTE(0x81); ST7565_WRITE_BYTE(N); }while(0) -#define ST7565_COLUMN_ADR(N) do{ ST7565_WRITE_BYTE(0x10 | ((N) >> 4) & 0xF); ST7565_WRITE_BYTE(0x00 | ((N) & 0xF)); }while(0) +#define ST7565_COLUMN_ADR(N) do{ ST7565_WRITE_BYTE(0x10 | (((N) >> 4) & 0xF)); ST7565_WRITE_BYTE((N) & 0xF); }while(0) #define ST7565_PAGE_ADR(N) ST7565_WRITE_BYTE(0xB0 | (N)) #define ST7565_START_LINE(N) ST7565_WRITE_BYTE(0x40 | (N)) #define ST7565_SLEEP_MODE() ST7565_WRITE_BYTE(0xAC)