rusefi-1/firmware/controllers/start_stop.cpp

10 lines
392 B
C++
Raw Normal View History

#include "start_stop.h"
#include "engine.h"
ButtonDebounce startStopButtonDebounce("start_button");
void initStartStopButton(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
/* startCrankingDuration is efitimesec_t, so we need to multiply it by 1000 to get milliseconds*/
2020-09-28 16:17:17 -07:00
startStopButtonDebounce.init((CONFIG(startCrankingDuration)*1000), CONFIG(startStopButtonPin), CONFIG(startStopButtonMode));
}