|
@@ -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()
|