mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 13:47:35 +08:00
dataman: left FIXME comment
We shouldn't be using module here.
This commit is contained in:
@@ -1064,6 +1064,7 @@ _ram_flash_wait(px4_sem_t *sem)
|
||||
const uint64_t diff = dm_operations_data.ram_flash.flush_timeout_usec - now;
|
||||
struct timespec abstime;
|
||||
abstime.tv_sec = diff / USEC_PER_SEC;
|
||||
// FIXME: this could be made more performant.
|
||||
abstime.tv_nsec = (diff % USEC_PER_SEC) * NSEC_PER_USEC;
|
||||
|
||||
px4_sem_timedwait(sem, &abstime);
|
||||
|
||||
Reference in New Issue
Block a user