From 578ce4320ab7b95fef871dfc2a8a4980b520c933 Mon Sep 17 00:00:00 2001 From: Marc Planard Date: Sun, 18 Aug 2024 22:10:32 +0200 Subject: [PATCH] cleanup --- src/device/etherdream.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/device/etherdream.rs b/src/device/etherdream.rs index c5ac849..a09742f 100644 --- a/src/device/etherdream.rs +++ b/src/device/etherdream.rs @@ -17,7 +17,7 @@ use ether_dream::protocol::{DacBroadcast, DacResponse}; #[warn(dead_code)] pub struct EtherdreamDevice { - pub conf: EtherDreamConf, + conf: EtherDreamConf, dac: DacBroadcast, stream: Stream, @@ -188,7 +188,11 @@ impl Device for EtherdreamDevice { } i += 1; } - if i > 0 { + if i > 1 { + info!( + "Cool_down adjusted from {:?} to {:?}", + self.cool_down, cool_down + ); self.cool_down = cool_down; }