From 0c9763425dadd0fd851060b720afaf2380ba5e91 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 23 May 2024 18:23:52 -0400 Subject: [PATCH] cleaner defines --- firmware/config/stm32f4ems/efifeatures.h | 6 ++++++ firmware/hw_layer/pin_repository.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 72e617f8ad..91a53577fd 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -10,6 +10,8 @@ #pragma once +#include + #define EFI_GPIO_HARDWARE TRUE #ifndef SENT_CHANNELS_NUM @@ -36,6 +38,10 @@ #define EFI_BACKUP_SRAM TRUE #endif +#ifndef EFI_HELLA_OIL +#define EFI_HELLA_OIL FALSE +#endif + #ifndef EFI_USE_OPENBLT #define EFI_USE_OPENBLT FALSE #endif diff --git a/firmware/hw_layer/pin_repository.cpp b/firmware/hw_layer/pin_repository.cpp index d5b3f0a839..001a1e77f3 100644 --- a/firmware/hw_layer/pin_repository.cpp +++ b/firmware/hw_layer/pin_repository.cpp @@ -49,7 +49,7 @@ int brainPin_to_index(Gpio brainPin) { */ bool brain_pin_markUsed(Gpio brainPin, const char *msg) { -#if ! EFI_BOOTLOADER +#ifndef EFI_BOOTLOADER efiPrintf("pin_markUsed: %s on %s", msg, hwPortname(brainPin)); #endif @@ -79,7 +79,7 @@ bool brain_pin_markUsed(Gpio brainPin, const char *msg) { */ void brain_pin_markUnused(brain_pin_e brainPin) { -#if ! EFI_BOOTLOADER +#ifndef EFI_BOOTLOADER efiPrintf("pin_markUnused: %s", hwPortname(brainPin)); #endif int index = brainPin_to_index(brainPin);