Line |
Branch |
Decision |
Exec |
Source |
1 |
|
|
|
/** |
2 |
|
|
|
* @file allsensors.cpp |
3 |
|
|
|
* @brief |
4 |
|
|
|
* |
5 |
|
|
|
* |
6 |
|
|
|
* @date Nov 15, 2013 |
7 |
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020 |
8 |
|
|
|
*/ |
9 |
|
|
|
|
10 |
|
|
|
#include "pch.h" |
11 |
|
|
|
|
12 |
|
|
|
ButtonDebounce acDebounce("ac_switch"); |
13 |
|
|
|
|
14 |
|
|
584 |
void initSensors() { |
15 |
|
|
584 |
initMapDecoder(); |
16 |
|
|
584 |
acDebounce.init(15, engineConfiguration->acSwitch, engineConfiguration->acSwitchMode); |
17 |
|
|
584 |
} |
18 |
|
|
|
|
19 |
|
|
90 |
bool getAcToggle() { |
20 |
|
|
90 |
return acDebounce.readPinState(); |
21 |
|
|
|
} |
22 |
|
|
|
|
23 |
|
|
1117 |
bool hasAcToggle() { |
24 |
|
|
1117 |
return isBrainPinValid(engineConfiguration->acSwitch); |
25 |
|
|
|
} |
26 |
|
|
|
|