From fffd3ca60f11bae8d14d08c0a5424a687d92bcaf Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Mon, 19 Aug 2024 17:26:37 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(RobotController):=20Set=20is=5Fdee?= =?UTF-8?q?p=5Fsleeping=20on=20DeepSleep=20enter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/RobotKit/include/RobotController.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/RobotKit/include/RobotController.h b/libs/RobotKit/include/RobotController.h index 129bf28b0..d083a226e 100644 --- a/libs/RobotKit/include/RobotController.h +++ b/libs/RobotKit/include/RobotController.h @@ -315,6 +315,10 @@ class RobotController : public interface::RobotController component->enableDeepSleep(); } _ble.disconnect(); + + auto advertising_data = _ble.getAdvertisingData(); + advertising_data.is_deep_sleeping = true; + _ble.setAdvertisingData(advertising_data); } void wakeUp() final { system_reset(); }