mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
HAL_ESP32: use faster div1000
This commit is contained in:
parent
d90a4654a7
commit
3fd907ddce
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user