Skip to content

Commit 4162ced

Browse files
authored
Update shield_watcher.py
added a 1 second sleep to reduce cpu usage
1 parent 4756580 commit 4162ced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: shield_watcher.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import signal
44
import sys
5+
import time
56
from dotenv import load_dotenv
67
from handler.adb import ADBHandler, STATE_POWER_ON
78
from handler.hyperhdr import HyperHDRHandler
@@ -51,6 +52,7 @@ def power_mode_callback(new_state, old_state):
5152

5253
while True:
5354
adbh.loop()
55+
time.sleep(1)
5456

5557

5658
if __name__ == "__main__":

0 commit comments

Comments
 (0)