X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src_test%2Ftest_w1_datalog_write.cc;h=126a02f4d503080b06b3b42446122b2fd4e07a66;hb=6dea0b59503a71874c4476c05044fff3c5ae26a5;hp=88d4c5fc0b7d1a8ff8ed8948e33d18236cac9cec;hpb=c4d8504b99fa1e354d15b2b91e4e2797f54ba028;p=lib1wire.git diff --git a/src_test/test_w1_datalog_write.cc b/src_test/test_w1_datalog_write.cc index 88d4c5f..126a02f 100644 --- a/src_test/test_w1_datalog_write.cc +++ b/src_test/test_w1_datalog_write.cc @@ -73,14 +73,16 @@ int main(int argc, char** argv) { device_list = Factory::get_device_list(); round = 0; if (device_list.size() > 0) { - while(1) { + int ii = 0; + while(ii < 6) { + ii++; round++; for(iter = device_list.begin(); iter != device_list.end(); iter++) { device = (W1Device *)*iter; device->printout(); sleep(1); if (round >= store_interval) { - device->store(); + device->save_data(); } } sleep(scan_interval);