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 |