aboutsummaryrefslogtreecommitdiff
path: root/Source/Timer.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-29 01:07:06 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-29 01:07:06 +0100
commit9cbaf49e93758b50e82a4d7d42762de242e7f086 (patch)
treeccef6f3880f390783ded88fe844a18cba0fba30c /Source/Timer.c
parent0b60fe23cdbca9df95c8cc2bf978874c29334e69 (diff)
downloadairport-9cbaf49e93758b50e82a4d7d42762de242e7f086.tar.gz
Some important bugfixes.
Added BUILDING_ATC_LOC. Added more levels.
Diffstat (limited to 'Source/Timer.c')
-rw-r--r--Source/Timer.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Timer.c b/Source/Timer.c
index a62723e..cc0f9da 100644
--- a/Source/Timer.c
+++ b/Source/Timer.c
@@ -149,7 +149,14 @@ void TimerHandler(void)
void TimerRestart(TYPE_TIMER* timer)
{
- timer->time = timer->orig_time;
+ if (timer != NULL)
+ {
+ timer->time = timer->orig_time;
+ }
+ else
+ {
+ Serial_printf("TimerRestart: invalid TYPE_TIMER instance\n");
+ }
}
/* *********************************************************************