Remove unneeded check

This commit is contained in:
Josh Stewart 2013-09-26 21:26:56 +10:00
parent f9f03f931b
commit 307205ce4d
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ void setFuelSchedule2(void (*startCallback)(), unsigned long timeout, unsigned l
void setIgnitionSchedule1(void (*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)())
{
if(ignitionSchedule1.Status == RUNNING) { return; } //Check that we're not already part way through a schedule
if(ignitionSchedule1.Status == PENDING) { return; } //Check that we're not already part way through a schedule
//if(ignitionSchedule1.Status == PENDING) { return; } //Check that we're not already part way through a schedule
//We need to calculate the value to reset the timer to (preload) in order to achieve the desired overflow time
//As the timer is ticking every 16uS (Time per Tick = (Prescale)*(1/Frequency))