fix: Add low-memory guard and cooldown for Discord message sending
This isn't quite the fix though just want to save my position till tomorrow and see what changes come up before and after
This commit is contained in:
1
main.py
1
main.py
@@ -202,6 +202,7 @@ if wifi and wifi.isconnected():
|
||||
|
||||
# Send startup notification to Discord (with timeout, non-blocking)
|
||||
try:
|
||||
gc.collect() # free heap before HTTPS
|
||||
success = discord_webhook.send_discord_message(f"Pico W online at http://{ifconfig[0]} ✅")
|
||||
if success:
|
||||
print("Discord startup notification sent")
|
||||
|
||||
Reference in New Issue
Block a user