thermferm/lcd-buffer.c

changeset 422
13502d0dda65
parent 420
644a6106d712
child 484
7362ebd40f26
equal deleted inserted replaced
421:0258107a9e72 422:13502d0dda65
147 if (tmp == NULL) { 147 if (tmp == NULL) {
148 syslog(LOG_NOTICE, "lcd_buf_show: search after last record, current_offset=%d current_lines=%d i=%d", current_offset, current_lines, i); 148 syslog(LOG_NOTICE, "lcd_buf_show: search after last record, current_offset=%d current_lines=%d i=%d", current_offset, current_lines, i);
149 return; 149 return;
150 } 150 }
151 151
152 #ifdef HAVE_WIRINGPI_H 152 for (r = 0; r < Config.lcd_rows; r++) {
153 lcdPosition(lcdHandle, 0, r);
154 lcdPuts(lcdHandle, tmp->row);
155 #endif
156 slcdPosition(slcdHandle, 0, r);
157 slcdPuts(slcdHandle, tmp->row);
158
159 r++;
160 if (r < Config.lcd_rows) {
161 if (tmp->next != NULL)
162 tmp = tmp->next;
163 else
164 tmp = my_lcd_rows;
165 #ifdef HAVE_WIRINGPI_H 153 #ifdef HAVE_WIRINGPI_H
166 lcdPosition(lcdHandle, 0, r); 154 lcdPosition(lcdHandle, 0, r);
167 lcdPuts(lcdHandle, tmp->row); 155 lcdPuts(lcdHandle, tmp->row);
168 #endif 156 #endif
169 slcdPosition(slcdHandle, 0, r); 157 slcdPosition(slcdHandle, 0, r);
170 slcdPuts(slcdHandle, tmp->row); 158 slcdPuts(slcdHandle, tmp->row);
159
160 if (tmp->next != NULL)
161 tmp = tmp->next;
162 else
163 tmp = my_lcd_rows;
171 } 164 }
165
166 #ifdef HAVE_WIRINGPI_H
167 // lcdPosition(lcdHandle, 0, r);
168 // lcdPuts(lcdHandle, tmp->row);
169 #endif
170 // slcdPosition(slcdHandle, 0, r);
171 // slcdPuts(slcdHandle, tmp->row);
172
173 // r++;
174 // if (r < Config.lcd_rows) {
175 // if (tmp->next != NULL)
176 // tmp = tmp->next;
177 // else
178 // tmp = my_lcd_rows;
179 #ifdef HAVE_WIRINGPI_H
180 // lcdPosition(lcdHandle, 0, r);
181 // lcdPuts(lcdHandle, tmp->row);
182 #endif
183 // slcdPosition(slcdHandle, 0, r);
184 // slcdPuts(slcdHandle, tmp->row);
185 // }
186
172 } 187 }
173 188
174 189

mercurial