examples, timer: use llabs() 64-bit argument

This commit is contained in:
Anton Maklakov 2022-05-24 16:04:57 +07:00
parent bf3892acee
commit 1f5bb083b9

View File

@ -70,7 +70,7 @@ void app_main(void)
int64_t t2 = esp_timer_get_time();
ESP_LOGI(TAG, "Woke up from light sleep, time since boot: %lld us", t2);
assert(abs((t2 - t1) - 500000) < 1000);
assert(llabs((t2 - t1) - 500000) < 1000);
/* Let the timer run for a little bit more */
usleep(2000000);