diff rust/src/fridge.rs @ 636:43eb3cfdf769 rust

some progress, better error handling
author Matt Johnston <matt@ucc.asn.au>
date Wed, 16 Oct 2019 22:33:06 +0800
parents 4424a8b30f9c
children a9f353f488d0
line wrap: on
line diff
--- a/rust/src/fridge.rs	Sun Sep 22 22:06:46 2019 +0800
+++ b/rust/src/fridge.rs	Wed Oct 16 22:33:06 2019 +0800
@@ -171,6 +171,7 @@
             FridgeControl::Fake => debug!("fridge turns {}", if on {"on"} else {"off"}),
         }
         self.on = on;
+        self.integrator.turn(on)
     }
 
     // Turns the fridge off and on