auto-sync
This commit is contained in:
parent
d51cd692f4
commit
572aad3a26
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
||||
|
|
Loading…
Reference in New Issue