trigger and start button pins not displayed by "pins" command fix #2084

This commit is contained in:
rusefillc 2020-12-16 22:53:26 -05:00
parent 8f2116921c
commit 26fbf0527a
3 changed files with 6 additions and 4 deletions

View File

@ -140,7 +140,7 @@ static fuel_table_t alphaNfuel = {
*
* todo: place this field next to 'engineConfiguration'?
*/
#ifdef EFI_ACTIVE_CONFIGURATION_IN_FLASH
#if EFI_ACTIVE_CONFIGURATION_IN_FLASH
#include "flash_int.h"
engine_configuration_s & activeConfiguration = reinterpret_cast<persistent_config_container_s*>(getFlashAddrFirstCopy())->persistentConfiguration.engineConfiguration;
// we cannot use this activeConfiguration until we call rememberCurrentConfiguration()

View File

@ -59,15 +59,15 @@ void ButtonDebounce::stopConfiguration () {
#else
if (*m_pin != active_pin || *m_mode != active_mode || (isActiveConfigurationVoid && (*m_pin != 0 || *m_mode != 0))) {
#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
#if ! EFI_UNIT_TEST
#if EFI_PROD_CODE
efiSetPadUnused(active_pin);
needsPinInitialization = true;
#endif /* EFI_UNIT_TEST */
needsPinInitialization = true;
}
}
void ButtonDebounce::startConfiguration () {
#if ! EFI_UNIT_TEST
#if EFI_PROD_CODE
if (needsPinInitialization) {
efiSetPadMode("Button", *m_pin, getInputMode(*m_mode));
needsPinInitialization = false;

View File

@ -23,6 +23,8 @@
#define SC_BUFFER_SIZE 4000
#define EFI_ACTIVE_CONFIGURATION_IN_FLASH FALSE
#define EFI_BOOST_CONTROL FALSE
#define EFI_CANBUS_SLAVE FALSE