comparison main.c @ 87:81b8c84344c4

- log more details - less silly way to load localconfig
author Matt Johnston <matt@ucc.asn.au>
date Thu, 12 Jul 2012 23:44:20 +0800
parents b9179968a272
children 51d889ad39a3
comparison
equal deleted inserted replaced
86:6c18e0d12276 87:81b8c84344c4
294 fprintf_P(crc_stdout, PSTR("time_step=%hu\n"), measure_wake); 294 fprintf_P(crc_stdout, PSTR("time_step=%hu\n"), measure_wake);
295 fprintf_P(crc_stdout, PSTR("first_time=%lu\n"), first_measurement_clock); 295 fprintf_P(crc_stdout, PSTR("first_time=%lu\n"), first_measurement_clock);
296 fprintf_P(crc_stdout, PSTR("last_time=%lu\n"), last_measurement_clock); 296 fprintf_P(crc_stdout, PSTR("last_time=%lu\n"), last_measurement_clock);
297 fprintf_P(crc_stdout, PSTR("comms_time=%lu\n"), last_comms_clock); 297 fprintf_P(crc_stdout, PSTR("comms_time=%lu\n"), last_comms_clock);
298 fprintf_P(crc_stdout, PSTR("voltage=%hu\n"), adc_vcc()); 298 fprintf_P(crc_stdout, PSTR("voltage=%hu\n"), adc_vcc());
299 fprintf_P(crc_stdout, PSTR("measure=%hu\n"), measure_wake);
300 fprintf_P(crc_stdout, PSTR("comms=%hu\n"), comms_wake);
301 fprintf_P(crc_stdout, PSTR("wake=%hhu\n"), wake_secs);
302 fprintf_P(crc_stdout, PSTR("tick=%d\n"), TICK);
303 fprintf_P(crc_stdout, PSTR("maxsens=%hhu\n"), MAX_SENSORS);
304 fprintf_P(crc_stdout, PSTR("totalmeas=%hu\n"), TOTAL_MEASUREMENTS);
299 fprintf_P(crc_stdout, PSTR("sensors=%hhu\n"), n_sensors); 305 fprintf_P(crc_stdout, PSTR("sensors=%hhu\n"), n_sensors);
300 for (uint8_t s = 0; s < n_sensors; s++) 306 for (uint8_t s = 0; s < n_sensors; s++)
301 { 307 {
302 fprintf_P(crc_stdout, PSTR("sensor_id%hhu="), s); 308 fprintf_P(crc_stdout, PSTR("sensor_id%hhu="), s);
303 printhex(sensor_id[s], ID_LEN, crc_stdout); 309 printhex(sensor_id[s], ID_LEN, crc_stdout);