AP_HAL_PX4: compiler warnings: float to doubles

This commit is contained in:
Tom Pittenger 2015-05-02 02:40:44 -07:00 committed by Andrew Tridgell
parent 54f4d4b07c
commit 98c5137107
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ enum PX4Util::safety_state PX4Util::safety_switch_state(void)
void PX4Util::set_system_clock(uint64_t time_utc_usec) void PX4Util::set_system_clock(uint64_t time_utc_usec)
{ {
timespec ts; timespec ts;
ts.tv_sec = time_utc_usec/1.0e6; ts.tv_sec = time_utc_usec/1.0e6f;
ts.tv_nsec = (time_utc_usec % 1000000) * 1000; ts.tv_nsec = (time_utc_usec % 1000000) * 1000;
clock_settime(CLOCK_REALTIME, &ts); clock_settime(CLOCK_REALTIME, &ts);
} }