2021-07-25 22:05:17 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2020-09-09 00:22:15 -07:00
|
|
|
#include "start_stop.h"
|
|
|
|
|
2020-11-19 20:57:06 -08:00
|
|
|
ButtonDebounce startStopButtonDebounce("start_button");
|
2020-09-09 00:22:15 -07:00
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void initStartStopButton() {
|
2020-09-20 11:01:00 -07:00
|
|
|
/* startCrankingDuration is efitimesec_t, so we need to multiply it by 1000 to get milliseconds*/
|
2021-11-17 00:54:21 -08:00
|
|
|
startStopButtonDebounce.init((engineConfiguration->startCrankingDuration*1000), engineConfiguration->startStopButtonPin, engineConfiguration->startStopButtonMode);
|
2020-09-09 00:22:15 -07:00
|
|
|
}
|