239 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "HUM_VALUE", "%d", Config.hum_value)) < 0) { |
237 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "HUM_VALUE", "%d", Config.hum_value)) < 0) { |
240 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); |
238 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); |
241 return 1; |
239 return 1; |
242 } |
240 } |
243 |
241 |
244 #ifdef HAVE_WIRINGPI_H |
|
245 /* |
242 /* |
246 * Start an element named "LCDS" as child of THERMFERM. |
243 * Start an element named "LCDS" as child of THERMFERM. |
247 */ |
244 */ |
248 if ((rc = xmlTextWriterStartElement(writer, BAD_CAST "LCDS")) < 0) { |
245 if ((rc = xmlTextWriterStartElement(writer, BAD_CAST "LCDS")) < 0) { |
249 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterStartElement"); |
246 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterStartElement"); |
2045 Config.temp_address = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
2039 Config.temp_address = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
2046 } |
2040 } |
2047 if ((!xmlStrcmp(cur->name, (const xmlChar *)"HUM_ADDRESS"))) { |
2041 if ((!xmlStrcmp(cur->name, (const xmlChar *)"HUM_ADDRESS"))) { |
2048 Config.hum_address = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
2042 Config.hum_address = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
2049 } |
2043 } |
2050 #ifdef HAVE_WIRINGPI_H |
|
2051 if ((!xmlStrcmp(cur->name, (const xmlChar *)"LCDS"))) { |
2044 if ((!xmlStrcmp(cur->name, (const xmlChar *)"LCDS"))) { |
2052 parseLCDs(doc, cur); |
2045 parseLCDs(doc, cur); |
2053 } |
2046 } |
2054 #endif |
|
2055 if ((!xmlStrcmp(cur->name, (const xmlChar *)"FERMENTERS"))) { |
2047 if ((!xmlStrcmp(cur->name, (const xmlChar *)"FERMENTERS"))) { |
2056 parseFermenters(doc, cur); |
2048 parseFermenters(doc, cur); |
2057 } |
2049 } |
2058 if ((!xmlStrcmp(cur->name, (const xmlChar *)"PROFILES"))) { |
2050 if ((!xmlStrcmp(cur->name, (const xmlChar *)"PROFILES"))) { |
2059 parseProfiles(doc, cur); |
2051 parseProfiles(doc, cur); |