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:
Steve Karg
2020-01-19 20:33:03 -06:00
committed by GitHub
parent 738ef825b0
commit c9399ce501
7 changed files with 19 additions and 6 deletions
+2 -3
View File
@@ -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;
}
/*---------------------------------------------------------------------------*/