auto-sync

This commit is contained in:
rusEfi 2015-03-22 00:05:56 -05:00
parent d51cd692f4
commit 572aad3a26
3 changed files with 6 additions and 2 deletions

View File

@ -438,7 +438,7 @@ static void setCrankingRpm(int value) {
* this method is used in console - it also prints current configuration
*/
static void setAlgorithmInt(int value) {
setAlgorithmInt((engine_load_mode_e) value);
setAlgorithm((engine_load_mode_e) value);
doPrintConfiguration(engine);
}

View File

@ -33,7 +33,7 @@ void scheduleByTime(const char *prefix, scheduling_s *scheduling, efitimeus_t ti
}
void scheduleTask(const char *prefix, scheduling_s *scheduling, int delayUs, schfunc_t callback, void *param) {
int delaySt = delayUs * CH_FREQUENCY / 1000000;
int delaySt = MY_US2ST(delayUs);
if (delaySt <= 0) {
/**
* in case of zero delay, we should invoke the callback

View File

@ -21,6 +21,10 @@
#define NT2US(x) ((x) / US_TO_NT_MULTIPLIER)
// need to fight 32bit int overflow
#define MY_US2ST(x) ((x) / 10)
#ifndef GLOBAL_FT_H_
#define GLOBAL_FT_H_