cleaner defines

This commit is contained in:
Andrey 2024-05-23 18:23:52 -04:00
parent 051d619e16
commit 0c9763425d
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,8 @@
#pragma once
#include <rusefi/true_false.h>
#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

View File

@ -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);