HAL_ESP32: use faster div1000

This commit is contained in:
Andrew Tridgell 2024-01-07 13:03:31 +11:00
parent d90a4654a7
commit 3fd907ddce

View File

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