Only inhibit sleep if motion notifications are enabled, not just Bluetooth

This commit is contained in:
apilat 2022-06-30 15:52:57 +01:00 committed by FintasticMan
parent 074df0526f
commit a6cd3679eb
4 changed files with 12 additions and 3 deletions

View file

@ -120,3 +120,7 @@ void MotionService::UnsubscribeNotification(uint16_t attributeHandle) {
else if (attributeHandle == motionValuesHandle)
motionValuesNoficationEnabled = false;
}
bool MotionService::IsMotionNotificationSubscribed() const {
return motionValuesNoficationEnabled;
}