FreeRTOS clock fix

This commit is contained in:
Robin Müller 2024-04-17 20:56:07 +02:00
parent 5ff161b70a
commit 8c87dafd5d
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,9 @@ ReturnValue_t Clock::setClock(const timeval* time) {
return returnvalue::OK;
}
ReturnValue_t Clock::getClock_timeval(timeval* time) {
ReturnValue_t Clock::getClock_timeval(timeval* time) { return getClock(time); }
ReturnValue_t Clock::getClock(timeval* time) {
timeval uptime = getUptime();
timeval offset = Timekeeper::instance()->getOffset();

View File

@ -168,4 +168,3 @@ void serial::flushRxBuf(int fd) { tcflush(fd, TCIFLUSH); }
void serial::flushTxBuf(int fd) { tcflush(fd, TCOFLUSH); }
void serial::flushTxRxBuf(int fd) { tcflush(fd, TCIOFLUSH); }