Skip to content

Commit

Permalink
Feat(Exec): Implement CPU clock gating
Browse files Browse the repository at this point in the history
Implements CPU clock gating to improve execution performance.
  • Loading branch information
CodeGoat-dev committed Feb 3, 2025
1 parent 102d925 commit 0d7c6a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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

## V1.1.2

### Changes

#### Execution

Improves execution by implementing CPU clock gating.

## V1.1.1

### Bug Fixes
Expand Down
3 changes: 3 additions & 0 deletions src/NetworkManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ async def start_captive_portal_server(self):
print(f"Serving on {self.ip_address}:{self.captive_portal_http_port}")

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

machine.idle()

await asyncio.sleep(0.1)
except Exception as e:
print(f"Error in network manager: {e}")
Expand Down

0 comments on commit 0d7c6a9

Please sign in to comment.