HAL_ESP32: use faster div1000

This commit is contained in:
Andrew Tridgell 2024-01-07 13:03:31 +11:00
parent d90a4654a7
commit 3fd907ddce
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_HAL_ESP32/HAL_ESP32_Class.h>
#include <AP_Math/div1000.h>
#include "SdCard.h"
#include <stdint.h>
@ -51,7 +52,7 @@ uint64_t micros64()
uint64_t millis64()
{
return micros64()/1000;
return uint64_div1000(micros64());
}
} // namespace AP_HAL