From 579bec5abdd1bdb1b0cf821f5588f5fbd4571863 Mon Sep 17 00:00:00 2001 From: nicoboy Date: Mon, 1 Jun 2026 15:04:38 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20:=20get=5Frunning=5Floop()=20au=20lieu=20?= =?UTF-8?q?de=20get=5Fevent=5Floop()=20(d=C3=A9pr=C3=A9ci=C3=A9=20Python?= =?UTF-8?q?=203.10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- wireclaw_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireclaw_core.py b/wireclaw_core.py index 143eb5d..cdd3905 100644 --- a/wireclaw_core.py +++ b/wireclaw_core.py @@ -248,7 +248,7 @@ async def init(): """Initialise pymavlink, MAVSDK et démarre les tâches de fond de télémétrie.""" global drone, drone_armed # init_pymavlink est synchrone et bloquant — run_in_executor évite de geler l'event loop - loop = asyncio.get_event_loop() + loop = asyncio.get_running_loop() await loop.run_in_executor(None, init_pymavlink) drone = System() await drone.connect(system_address=MAVLINK_ADDRESS)