]> pilppa.com Git - lib1wire.git/commitdiff
increased the storage intervals from test application
authorMika Laitio <lamikr@pilppa.org>
Sat, 30 Oct 2010 23:24:34 +0000 (02:24 +0300)
committerMika Laitio <lamikr@pilppa.org>
Sat, 30 Oct 2010 23:24:34 +0000 (02:24 +0300)
src_test/test_w1.cc

index e0ceb1d4c4f4eec634d07798d87480c7d8d36f1f..e3a17f36ee5ead8ea95e42c9ac24abd6080c83b4 100644 (file)
@@ -29,9 +29,12 @@ int main(int argc, char** argv) {
                location        = argv[1];
                log_info("storage location: %s\n", location.c_str());
        }
+       else {
+               log_warning("storage location was not given as a parameter, using default location: %s\n", location.c_str());
+       }
        W1Store::set_location(location.c_str());
-       interval_seconds        = 3;
-       store_interval          = 3;
+       interval_seconds        = 600;
+       store_interval          = 6;
        scanner                 = new W1Scanner();
        device_list             = scanner->get_device_list();
        round                   = 0;