thermferm/rdconfig.c

changeset 78
c49ab5179bf3
parent 77
143077e54255
child 80
81bf78a7618e
equal deleted inserted replaced
77:143077e54255 78:c49ab5179bf3
248 } 248 }
249 if ((rc = xmlTextWriterWriteElement(writer, BAD_CAST "VERSION", BAD_CAST "1")) < 0) { 249 if ((rc = xmlTextWriterWriteElement(writer, BAD_CAST "VERSION", BAD_CAST "1")) < 0) {
250 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteElement"); 250 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteElement");
251 return 1; 251 return 1;
252 } 252 }
253 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ADDRESS", "0x%x", Config.lcd_address)) < 0) {
254 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement");
255 return 1;
256 }
253 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "COLUMNS", "%d", Config.lcd_cols)) < 0) { 257 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "COLUMNS", "%d", Config.lcd_cols)) < 0) {
254 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); 258 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement");
255 return 1; 259 return 1;
256 } 260 }
257 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ROWS", "%d", Config.lcd_rows)) < 0) { 261 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ROWS", "%d", Config.lcd_rows)) < 0) {

mercurial