You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server runs in a tight loop even when in "relaxed" mode (10 second idle timeout)
I would suggest to add this simple change to keep the raspberry much cooler and not using so much power when idle/relaxed;
diff --git a/Code/Server/Control.py b/Code/Server/Control.py
index 7e73f6e..d26060b 100644
--- a/Code/Server/Control.py
+++ b/Code/Server/Control.py
@@ -152,6 +152,8 @@ class Control:
return flag
def condition(self):
while True:
+ if self.flag==0x00:
+ time.sleep(0.01)
if (time.time()-self.timeout)>10 and self.timeout!=0 and self.order[0]=='':
self.timeout=time.time()
self.relax(True)
The text was updated successfully, but these errors were encountered:
The server runs in a tight loop even when in "relaxed" mode (10 second idle timeout)
I would suggest to add this simple change to keep the raspberry much cooler and not using so much power when idle/relaxed;
The text was updated successfully, but these errors were encountered: