Skip to content

Commit 0ee0db3

Browse files
committed
OpenBLT: fix FALSE/TRUE may be undefined in blt_conf.h
This is dirty hack, but we have total mess/mix of OpenBLT, ChibiOS and HAL includes here.
1 parent 6db95ee commit 0ee0db3

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

firmware/hw_layer/openblt/blt_conf.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,19 @@
121121
/** only USB supported, this is ignored but required */
122122
#define BOOT_COM_RS232_CHANNEL_INDEX 0
123123

124+
/** TODO: fix include mess and delete following hacks */
125+
#ifndef TRUE
126+
#define TRUE (1)
127+
#endif
128+
#ifndef FALSE
129+
#define FALSE (0)
130+
#endif
131+
124132
#ifndef EFI_ETHERNET
125133
#define EFI_ETHERNET FALSE
126134
#endif
127135

128-
#if (EFI_ETHERNET == TRUE)
136+
#if (EFI_ETHERNET)
129137
/* The NET communication interface for firmware updates via TCP/IP is selected by setting
130138
* the BOOT_COM_NET_ENABLE configurable to 1. The maximum amount of data bytes in a
131139
* message for data transmission and reception is set through BOOT_COM_NET_TX_MAX_DATA

0 commit comments

Comments
 (0)