From 15ab8fd5c23f2c9994d28b909916652bd63118c8 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Wed, 7 Jul 2021 16:43:55 +0200 Subject: [PATCH] fix: variant: correct guard for RHF76_052 Fixes #1439 Signed-off-by: Frederic Pillon --- variants/STM32L0xx/L051C(6-8)(T-U)/PeripheralPins_RHF76_052.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/variants/STM32L0xx/L051C(6-8)(T-U)/PeripheralPins_RHF76_052.c b/variants/STM32L0xx/L051C(6-8)(T-U)/PeripheralPins_RHF76_052.c index 792ec4e9d0..a53a42d0d0 100644 --- a/variants/STM32L0xx/L051C(6-8)(T-U)/PeripheralPins_RHF76_052.c +++ b/variants/STM32L0xx/L051C(6-8)(T-U)/PeripheralPins_RHF76_052.c @@ -14,7 +14,7 @@ * Automatically generated from STM32L051C(6-8)Tx.xml, STM32L051C(6-8)Ux.xml * CubeMX DB release 6.0.20 */ -#if !defined(CUSTOM_PERIPHERAL_PINS) +#if defined(ARDUINO_RHF76_052) #include "Arduino.h" #include "PeripheralPins.h" @@ -192,3 +192,4 @@ WEAK const PinMap PinMap_SPI_SSEL[] = { //*** No USB *** //*** No SD *** +#endif /* ARDUINO_RHF76_052 */