32 int current_offset = 0; |
32 int current_offset = 0; |
33 lcd_rows *my_lcd_rows = NULL; |
33 lcd_rows *my_lcd_rows = NULL; |
34 |
34 |
35 extern int lcdHandle; |
35 extern int lcdHandle; |
36 extern sys_config Config; |
36 extern sys_config Config; |
|
37 |
|
38 |
|
39 |
|
40 /* |
|
41 * Reset the LCD screens chain, it will automatic rebuild. |
|
42 */ |
|
43 void lcd_buf_reset(void) |
|
44 { |
|
45 lcd_rows *tmp, *old; |
|
46 |
|
47 for (tmp = my_lcd_rows; tmp; tmp = old) { |
|
48 old = tmp->next; |
|
49 tmp->next = NULL; |
|
50 free(tmp); |
|
51 } |
|
52 current_lines = current_offset = 0; |
|
53 my_lcd_rows = NULL; |
|
54 } |
37 |
55 |
38 |
56 |
39 |
57 |
40 /* |
58 /* |
41 * Write to buffer array. Allocate more lines if needed. |
59 * Write to buffer array. Allocate more lines if needed. |