Эх сурвалжийг харах

Fix battery sensor placement

Thomas Dy 9 жил өмнө
parent
commit
3992897f19
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/sensors/mod.rs

+ 1 - 1
src/sensors/mod.rs

@@ -38,7 +38,7 @@ pub fn sensors(tx: &Channel, config: &Config) {
 
     let bat = config.lookup("sensors.battery");
     let bat = bat.map(|bat| bat.as_str().unwrap());
-    bat.map(|bat| sensors.insert(0, Box::new(BatterySensor::new(bat))));
+    bat.map(|bat| sensors.insert(1, Box::new(BatterySensor::new(bat))));
 
     loop {
         let status = sensors.iter_mut()