diff rust/src/sensor.rs @ 595:e87655ed8429 rust

add config
author Matt Johnston <matt@ucc.asn.au>
date Thu, 05 Jan 2017 23:26:00 +0800
parents aff50ee77252
children ca8102feaca6
line wrap: on
line diff
--- a/rust/src/sensor.rs	Wed Jan 04 17:18:44 2017 +0800
+++ b/rust/src/sensor.rs	Thu Jan 05 23:26:00 2017 +0800
@@ -17,11 +17,15 @@
 }
 
 pub struct OneWireSensor {
+    master_dir: String,
 }
 
 impl OneWireSensor {
     fn new() -> OneWireSensor {
-        OneWireSensor {}
+        OneWireSensor {
+            master_dir: String::new(), // XXX
+            
+        }
         // todo
     }
 
@@ -32,6 +36,11 @@
         debug!("sensor step {:?}", r);
         r
     }
+
+    fn sensor_names(self) -> Vec<String> {
+        let mut names = vec![];
+        names
+    }
 }
 
 impl Sensor for OneWireSensor {