Wed, 25 Jun 2014 17:18:01 +0200
Added lcd i2c address to xml configuration
thermferm/rdconfig.c | file | annotate | diff | comparison | revisions | |
thermferm/thermferm.h | file | annotate | diff | comparison | revisions |
--- a/thermferm/rdconfig.c Wed Jun 25 16:56:09 2014 +0200 +++ b/thermferm/rdconfig.c Wed Jun 25 17:18:01 2014 +0200 @@ -250,6 +250,10 @@ syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteElement"); return 1; } + if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ADDRESS", "0x%x", Config.lcd_address)) < 0) { + syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); + return 1; + } if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "COLUMNS", "%d", Config.lcd_cols)) < 0) { syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); return 1;
--- a/thermferm/thermferm.h Wed Jun 25 16:56:09 2014 +0200 +++ b/thermferm/thermferm.h Wed Jun 25 17:18:01 2014 +0200 @@ -124,6 +124,7 @@ #ifdef HAVE_WIRINGPI_H int lcd_cols; /* LCD display columns */ int lcd_rows; /* LCD display rows */ + int lcd_address; /* LCD display i2c address */ #endif units_list *units; /* Fermenter units */ /* ControlSettings: */