Skip to content

Commit 0d7c6a9

Browse files
committed
Feat(Exec): Implement CPU clock gating
Implements CPU clock gating to improve execution performance.
1 parent 102d925 commit 0d7c6a9

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This document outlines the changes made between versions of the **Goat - Pico Network Manager** library.
44

5+
## V1.1.2
6+
7+
### Changes
8+
9+
#### Execution
10+
11+
Improves execution by implementing CPU clock gating.
12+
513
## V1.1.1
614

715
### Bug Fixes

src/NetworkManager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ async def start_captive_portal_server(self):
188188
print(f"Serving on {self.ip_address}:{self.captive_portal_http_port}")
189189

190190
while True:
191+
machine.idle()
191192
await asyncio.sleep(1) # Keep the server running
192193
except Exception as e:
193194
print(f"Error starting the captive portal server: {e}")
@@ -519,6 +520,8 @@ async def run(self):
519520
await asyncio.sleep(3) # Pause before rescanning
520521
continue
521522

523+
machine.idle()
524+
522525
await asyncio.sleep(0.1)
523526
except Exception as e:
524527
print(f"Error in network manager: {e}")

0 commit comments

Comments
 (0)