}
int main(int argc, char** argv) {
- list<Device *> device_list;
int read_count_total;
long cnt_max_scans;
long read_interval_seconds;
string loc;
Device *device;
+ list<Device *> device_list;
list<Device *>::iterator iter;
// default values than can be overwritten with parameters
log_info("closing the application, max read count reached. (%ld)\n", cnt_max_scans);
break;
}
- for(iter = device_list.begin(); iter != device_list.end(); iter++) {
+ for (iter = device_list.begin(); iter != device_list.end(); iter++) {
device = (Device *)*iter;
if (device->get_lifecycle_state() == LIFECYCLE_STATUS__AVAILABLE) {
device->printout();
}
}
else {
- log_debug("could not find 1-wire devices.\n");
+ log_debug("could not find devices.\n");
}
log_debug("trying to start emptying list\n");
while (device_list.empty() == false) {