diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 58780085..7a3ea884 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -720,6 +720,8 @@ IDevice::timer_uid_t CPhoneDevice::RegisterTimer(unsigned int timerType, unsigne context->data = data; context->timerType = timerType; context->expectedTimes = times; + context->times = 0; + context->uid = 0; evp.sigev_value.sival_ptr = context; evp.sigev_notify = SIGEV_THREAD; //SIGEV_THREAD_ID;