Const correctness in osTickCounterRead
This commit is contained in:
parent
c1cee4a115
commit
74b8aa00cd
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user