Motion service : fix step notifications that were sent as a single byte instead of 4 (uint32_t).

This commit is contained in:
Jean-François Milants 2021-10-26 20:31:18 +02:00
parent 82ca526ec2
commit 71ce13d309
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ int MotionService::OnStepCountRequested(uint16_t connectionHandle, uint16_t attr
return 0;
}
void MotionService::OnNewStepCountValue(uint8_t stepCount) {
void MotionService::OnNewStepCountValue(uint32_t stepCount) {
if(!stepCountNoficationEnabled) return;
uint32_t buffer = stepCount;