improve lcd mem

This commit is contained in:
lixianjing 2020-06-15 11:57:22 +08:00
parent a467d214a2
commit 678e1c9b08

View File

@ -44,8 +44,7 @@ typedef struct _lcd_mem_t {
} lcd_mem_t;
#define lcd_mem_set_line_length(lcd, value) \
((lcd_mem_t*)lcd)->line_length = ((lcd_mem_t*)lcd)->offline_line_length = value;
#define lcd_mem_set_line_length(lcd, value) ((lcd_mem_t*)lcd)->line_length = ((lcd_mem_t*)lcd)->online_line_length = value;
END_C_DECLS