thermferm/lcd-buffer.c

changeset 231
fafc84ec217e
parent 230
5a7024e6be88
child 245
b01b6238eb67
equal deleted inserted replaced
230:5a7024e6be88 231:fafc84ec217e
55 * Check if the line in row is allocated. If not, do it 55 * Check if the line in row is allocated. If not, do it
56 * and make sure the chain is valid. 56 * and make sure the chain is valid.
57 */ 57 */
58 while (row > current_lines) { 58 while (row > current_lines) {
59 59
60 syslog(LOG_NOTICE, "lcd_buf_write(%d, ...) allowcate new row", row); 60 syslog(LOG_NOTICE, "lcd_buf_write(%d, ...) allocate new row", row);
61 newrow = (lcd_rows *)malloc(sizeof(lcd_rows)); 61 newrow = (lcd_rows *)malloc(sizeof(lcd_rows));
62 newrow->next = NULL; 62 newrow->next = NULL;
63 snprintf(newrow->row, (Config.lcd_cols + 1) * sizeof(char), " "); 63 snprintf(newrow->row, (Config.lcd_cols + 1) * sizeof(char), " ");
64 64
65 if (my_lcd_rows == NULL) { 65 if (my_lcd_rows == NULL) {

mercurial