10 lines
392 B
C++
10 lines
392 B
C++
#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*/
|
|
startStopButtonDebounce.init((CONFIG(startCrankingDuration)*1000), CONFIG(startStopButtonPin), CONFIG(startStopButtonMode));
|
|
}
|