update time.c to not do a cast
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
b2ce5597b0
commit
5ca241ad0a
2 changed files with 3 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ void timerUpdateFunc(void) {
|
|||
long MwTimeGetTick(void) {
|
||||
UnsignedWide h;
|
||||
Microseconds(&h);
|
||||
return *(long*)&h;
|
||||
return h.lo;
|
||||
}
|
||||
void MwTimeSleep(int ms) {
|
||||
tm.tmAddr = NewTimerProc(timerUpdateFunc);
|
||||
|
|
@ -52,6 +52,8 @@ void MwTimeSleep(int ms) {
|
|||
|
||||
InsTime((QElemPtr)&tm);
|
||||
PrimeTime((QElemPtr)&tm, 1);
|
||||
|
||||
DisposeTimerUPP(tm.tmAddr);
|
||||
}
|
||||
#elif defined(__unix__)
|
||||
long MwTimeGetTick(void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue