Skip to content

Commit

Permalink
✨ (RobotController): Set is_deep_sleeping on DeepSleep enter
Browse files Browse the repository at this point in the history
  • Loading branch information
YannLocatelli committed Aug 19, 2024
1 parent 9a5a166 commit fffd3ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/RobotKit/include/RobotController.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit fffd3ca

Please sign in to comment.