dataman: left FIXME comment

We shouldn't be using module here.
This commit is contained in:
Julian Oes
2018-10-15 15:06:18 +02:00
parent 3f508c99fd
commit 09595a1de9
+1
View File
@@ -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);