X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src_test%2Ftest_w1_datalog_write.cc;h=cbba3d3adfeb74171d0daf00b3a10886edc66fd1;hb=7075fbe1f4e774856a90116e4414a08c37f692f0;hp=126a02f4d503080b06b3b42446122b2fd4e07a66;hpb=d58713adbc518552c11fd19bd21ae8bd11ab434f;p=lib1wire.git diff --git a/src_test/test_w1_datalog_write.cc b/src_test/test_w1_datalog_write.cc index 126a02f..cbba3d3 100644 --- a/src_test/test_w1_datalog_write.cc +++ b/src_test/test_w1_datalog_write.cc @@ -68,14 +68,13 @@ int main(int argc, char** argv) { if (argc > 3) { try_parse_long(argv[3], &store_interval); } - log_info("start scanning, data saved to location: %s, scan interval: %ld, store interval: %ld\n", loc.c_str(), scan_interval, store_interval); + log_info("scanning 1-wire devices\n"); + log_info("data save dir: %s, scan interval: %ld, save interval: %ld\n", loc.c_str(), scan_interval, store_interval); DeviceConfig::set_base_dir_name(loc); device_list = Factory::get_device_list(); round = 0; if (device_list.size() > 0) { - int ii = 0; - while(ii < 6) { - ii++; + while(1) { round++; for(iter = device_list.begin(); iter != device_list.end(); iter++) { device = (W1Device *)*iter;