mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/openthread_alarm_timer_overflow_v5.2' into 'release/v5.2'
fix(openthread): fix openthread_alarm_timer_overflow (backport v5.2) See merge request espressif/esp-idf!29390
This commit is contained in:
commit
6c1542e151
@ -101,8 +101,8 @@ void esp_openthread_alarm_deinit(void)
|
||||
void esp_openthread_alarm_update(esp_openthread_mainloop_context_t *mainloop)
|
||||
{
|
||||
struct timeval *timeout = &mainloop->timeout;
|
||||
int32_t remain_min_time_us = INT32_MAX;
|
||||
int32_t remaining_us = 0;
|
||||
int64_t remain_min_time_us = INT64_MAX;
|
||||
int64_t remaining_us = 0;
|
||||
if (s_is_ms_running) {
|
||||
remaining_us = calculate_duration(s_alarm_ms, otPlatAlarmMilliGetNow()) * US_PER_MS;
|
||||
if (remain_min_time_us > remaining_us) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user