Feature/port avr build check (#35)
* fix atmega168 build. * remove time.h to solve AVR compile * Add AVR build to CI for compile check
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
#include "mstimer.h"
|
||||
|
||||
/**
|
||||
@@ -83,12 +82,12 @@ void mstimer_restart(struct mstimer *t)
|
||||
* @return Non-zero if the timer has expired, zero otherwise.
|
||||
*/
|
||||
int mstimer_expired(struct mstimer *t)
|
||||
{
|
||||
{
|
||||
if (t->interval) {
|
||||
return ((unsigned long)((mstimer_now()) - (t->start + t->interval)) <
|
||||
((unsigned long)(~((unsigned long)0)) >> 1));
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user