diff --git a/changes.md b/changes.md index 1c79f63..e9f08b3 100644 --- a/changes.md +++ b/changes.md @@ -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 diff --git a/src/NetworkManager.py b/src/NetworkManager.py index 1c02aaf..a5f6a7e 100644 --- a/src/NetworkManager.py +++ b/src/NetworkManager.py @@ -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}") @@ -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}")