Added test if timing controller is enabled to the init function to prevent calling tc update.
This commit is contained in:
parent
523292a2fe
commit
c31af61fc0
1 changed files with 5 additions and 2 deletions
|
@ -117,8 +117,11 @@ void tc_init()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tc_update_main();
|
if (tc_enabled == TIMING_CONTROL_ENABLED)
|
||||||
|
{
|
||||||
|
Serial.println("tc_enabled = " + (String)tc_enabled);
|
||||||
|
tc_update_main();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//********************************//
|
//********************************//
|
||||||
|
|
Loading…
Reference in a new issue