thermferm/rdconfig.c

changeset 96
d08bf980ff28
parent 95
2c28afc329a5
child 101
1302abe92eb1
equal deleted inserted replaced
95:2c28afc329a5 96:d08bf980ff28
171 } 171 }
172 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "TEMPFORMAT", "%c", Config.tempFormat)) < 0) { 172 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "TEMPFORMAT", "%c", Config.tempFormat)) < 0) {
173 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); 173 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement");
174 return 1; 174 return 1;
175 } 175 }
176 if ((rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "AIR_ADDRESS", "%s", Config.air_address)) < 0) { 176 if (Config.air_address && (rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "AIR_ADDRESS", "%s", Config.air_address)) < 0) {
177 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement"); 177 syslog(LOG_NOTICE, "wrconfig: error at xmlTextWriterWriteFormatElement");
178 return 1; 178 return 1;
179 } 179 }
180 180
181 #ifdef HAVE_WIRINGPI_H 181 #ifdef HAVE_WIRINGPI_H

mercurial