diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-29 01:07:06 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-29 01:07:06 +0100 |
| commit | 9cbaf49e93758b50e82a4d7d42762de242e7f086 (patch) | |
| tree | ccef6f3880f390783ded88fe844a18cba0fba30c /Source/Timer.c | |
| parent | 0b60fe23cdbca9df95c8cc2bf978874c29334e69 (diff) | |
| download | airport-9cbaf49e93758b50e82a4d7d42762de242e7f086.tar.gz | |
Some important bugfixes.
Added BUILDING_ATC_LOC.
Added more levels.
Diffstat (limited to 'Source/Timer.c')
| -rw-r--r-- | Source/Timer.c | 9 |
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"); + } } /* ********************************************************************* |
