auto-sync

This commit is contained in:
rusEfi 2016-07-07 20:02:39 -04:00
parent 4a26634d88
commit b63fe4456e
3 changed files with 6 additions and 4 deletions

View File

@ -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.
*

View File

@ -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;

View File

@ -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;
}