From e57d199b403c8580f7128cc1e3269d4791cb7cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 21 Oct 2017 03:53:01 +0200 Subject: [PATCH] Move FIXED_BUSPAL_BOOTLOADER to buspal/command.c --- right/src/buspal/command.c | 5 ++--- right/src/config.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/right/src/buspal/command.c b/right/src/buspal/command.c index d5dd11b..99e9445 100644 --- a/right/src/buspal/command.c +++ b/right/src/buspal/command.c @@ -3,11 +3,10 @@ #include "crc16.h" #include "bus_pal_hardware.h" #include "peripherals/test_led.h" -#if FIXED_BUSPAL_BOOTLOADER - #include "microseconds/microseconds.h" -#endif +#include "microseconds/microseconds.h" #include "bootloader/wormhole.h" +#define FIXED_BUSPAL_BOOTLOADER 1 // Used to mark the fixed BusPal bootloader. Macro usage can be removed in the future. command_processor_data_t g_commandData; buspal_state_t g_buspalState = kBuspal_Idle; diff --git a/right/src/config.h b/right/src/config.h index 0be84db..f5d3291 100644 --- a/right/src/config.h +++ b/right/src/config.h @@ -5,6 +5,5 @@ #define I2C_WATCHDOG // #define LED_DRIVER_STRESS_TEST - #define FIXED_BUSPAL_BOOTLOADER 1 // Used to mark the fixed BusPal bootloader. Macro usage can be removed in the future. #endif