2020-09-09 00:22:15 -07:00
|
|
|
#include "start_stop.h"
|
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
EXTERN_ENGINE;
|
|
|
|
|
2020-11-06 20:48:35 -08:00
|
|
|
ButtonDebounce startStopButtonDebounce("start");
|
2020-09-09 00:22:15 -07:00
|
|
|
|
|
|
|
void initStartStopButton(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
2020-09-20 11:01:00 -07:00
|
|
|
/* 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));
|
2020-09-09 00:22:15 -07:00
|
|
|
}
|