Const correctness in osTickCounterRead

This commit is contained in:
fincs 2018-03-17 18:11:36 +01:00
parent c1cee4a115
commit 74b8aa00cd
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ static inline void osTickCounterUpdate(TickCounter* cnt)
* @param cnt The tick counter.
* @return The number of milliseconds elapsed.
*/
double osTickCounterRead(TickCounter* cnt);
double osTickCounterRead(const TickCounter* cnt);
/**
* @brief Gets the current Wifi signal strength.

View File

@ -113,7 +113,7 @@ u64 osGetTime(void) {
}
//---------------------------------------------------------------------------------
double osTickCounterRead(TickCounter* cnt) {
double osTickCounterRead(const TickCounter* cnt) {
//---------------------------------------------------------------------------------
return u64_to_double(cnt->elapsed) / CPU_TICKS_PER_MSEC;
}