code style
This commit is contained in:
parent
8467beae96
commit
747d038fe4
|
@ -35,7 +35,7 @@ void ButtonDebounce::init (efitimems_t threshold, brain_pin_e &pin, pin_input_mo
|
||||||
isInstanceRegisteredInGlobalList = true;
|
isInstanceRegisteredInGlobalList = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ButtonDebounce::stopConfigurationList () {
|
void ButtonDebounce::stopConfigurationList() {
|
||||||
ButtonDebounce *listItem = s_firstDebounce;
|
ButtonDebounce *listItem = s_firstDebounce;
|
||||||
while (listItem != nullptr) {
|
while (listItem != nullptr) {
|
||||||
listItem->stopConfiguration();
|
listItem->stopConfiguration();
|
||||||
|
@ -43,7 +43,7 @@ void ButtonDebounce::stopConfigurationList () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ButtonDebounce::startConfigurationList () {
|
void ButtonDebounce::startConfigurationList() {
|
||||||
ButtonDebounce *listItem = s_firstDebounce;
|
ButtonDebounce *listItem = s_firstDebounce;
|
||||||
while (listItem != nullptr) {
|
while (listItem != nullptr) {
|
||||||
listItem->startConfiguration();
|
listItem->startConfiguration();
|
||||||
|
@ -51,7 +51,7 @@ void ButtonDebounce::startConfigurationList () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ButtonDebounce::stopConfiguration () {
|
void ButtonDebounce::stopConfiguration() {
|
||||||
// If the configuration has changed
|
// If the configuration has changed
|
||||||
#if ! EFI_ACTIVE_CONFIGURATION_IN_FLASH
|
#if ! EFI_ACTIVE_CONFIGURATION_IN_FLASH
|
||||||
if (*m_pin != active_pin || *m_mode != active_mode) {
|
if (*m_pin != active_pin || *m_mode != active_mode) {
|
||||||
|
@ -65,7 +65,7 @@ void ButtonDebounce::stopConfiguration () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ButtonDebounce::startConfiguration () {
|
void ButtonDebounce::startConfiguration() {
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
if (needsPinInitialization) {
|
if (needsPinInitialization) {
|
||||||
efiSetPadMode(m_name, *m_pin, getInputMode(*m_mode));
|
efiSetPadMode(m_name, *m_pin, getInputMode(*m_mode));
|
||||||
|
|
Loading…
Reference in New Issue