diff rust/src/main.rs @ 596:ca8102feaca6 rust

sensor takes config parameter
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 Jan 2017 22:04:10 +0800
parents e87655ed8429
children a440eafa84a9
line wrap: on
line diff
--- a/rust/src/main.rs	Thu Jan 05 23:26:00 2017 +0800
+++ b/rust/src/main.rs	Fri Jan 06 22:04:10 2017 +0800
@@ -47,9 +47,9 @@
     let sensor_r = sensor_r.map_err(|_| io::Error::new(io::ErrorKind::Other, "Problem with sensor_r channel"));
 
     let sensor_stream = if cfg!(feature = "testmode") {
-        sensor::TestSensor::stream(&handle)
+        sensor::TestSensor::stream(&handle, &config)
     } else {
-        sensor::OneWireSensor::stream(&handle)
+        sensor::OneWireSensor::stream(&handle, &config)
     };
 
     // Send the sensors of interest to the fridge (sensor_s),