From c0f03fd8fb4c6ca20f5f4089b8259b8185b3985f Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 4 Apr 2020 12:59:13 -0700 Subject: [PATCH] cleanup (#1259) --- firmware/controllers/core/fsio_impl.cpp | 4 +--- firmware/controllers/system/efi_gpio.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/core/fsio_impl.cpp b/firmware/controllers/core/fsio_impl.cpp index 380c42c04a..8d8edcddfb 100644 --- a/firmware/controllers/core/fsio_impl.cpp +++ b/firmware/controllers/core/fsio_impl.cpp @@ -41,8 +41,6 @@ fsio8_Map3D_u8t fsioTable2("fsio#2"); fsio8_Map3D_u8t fsioTable3("fsio#3"); fsio8_Map3D_u8t fsioTable4("fsio#4"); -extern pin_output_mode_e DEFAULT_OUTPUT; - /** * Here we define all rusEfi-specific methods */ @@ -686,7 +684,7 @@ void initFsioImpl(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) { if (brainPin != GPIO_UNASSIGNED) { int frequency = CONFIG(fsioFrequency)[i]; if (frequency == 0) { - enginePins.fsioOutputs[i].initPin(getGpioPinName(i), CONFIG(fsioOutputPins)[i], &DEFAULT_OUTPUT); + enginePins.fsioOutputs[i].initPin(getGpioPinName(i), CONFIG(fsioOutputPins)[i]); } else { startSimplePwmExt(&fsioPwm[i], "FSIOpwm", &engine->executor, diff --git a/firmware/controllers/system/efi_gpio.cpp b/firmware/controllers/system/efi_gpio.cpp index 6f2a71f1ad..5f4d4ef977 100644 --- a/firmware/controllers/system/efi_gpio.cpp +++ b/firmware/controllers/system/efi_gpio.cpp @@ -32,7 +32,7 @@ extern WaveChart waveChart; EnginePins enginePins; static Logging* logger; -pin_output_mode_e DEFAULT_OUTPUT = OM_DEFAULT; +static const pin_output_mode_e DEFAULT_OUTPUT = OM_DEFAULT; static const char *sparkNames[] = { "Coil 1", "Coil 2", "Coil 3", "Coil 4", "Coil 5", "Coil 6", "Coil 7", "Coil 8", "Coil 9", "Coil 10", "Coil 11", "Coil 12"};