auto-sync
This commit is contained in:
parent
4a26634d88
commit
b63fe4456e
|
@ -58,6 +58,8 @@
|
|||
* @details Converts from milliseconds to system ticks number.
|
||||
* @note The result is rounded upward to the next tick boundary.
|
||||
*
|
||||
* WARNING! this macro does evil things in case of zero parameter!
|
||||
*
|
||||
* @param[in] msec number of milliseconds
|
||||
* @return The number of ticks.
|
||||
*
|
||||
|
|
|
@ -79,9 +79,9 @@ static void setInjectorEnabled(int id, int value) {
|
|||
|
||||
static void runBench(brain_pin_e brainPin, OutputPin *output, float delayMs, float onTimeMs, float offTimeMs,
|
||||
int count) {
|
||||
int delaySt = MS2ST(delayMs);
|
||||
int onTimeSt = MS2ST(onTimeMs);
|
||||
int offTimeSt = MS2ST(offTimeMs);
|
||||
int delaySt = delayMs < 1 ? 1 : MS2ST(delayMs);
|
||||
int onTimeSt = onTimeMs < 1 ? 1 : MS2ST(onTimeMs);
|
||||
int offTimeSt = offTimeMs < 1 ? 1 : MS2ST(offTimeMs);
|
||||
if (delaySt < 0) {
|
||||
scheduleMsg(logger, "Invalid delay %f", delayMs);
|
||||
return;
|
||||
|
|
|
@ -298,5 +298,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20160706;
|
||||
return 20160707;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue