Skip to content

Commit e714894

Browse files
committed
Shuffle ifdefs in STM32WLE5JCInterface to make it not get built by other targets
1 parent 0b361e2 commit e714894

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/mesh/STM32WLE5JCInterface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#include "STM32WLE5JCInterface.h"
21
#include "configuration.h"
2+
3+
#ifdef ARCH_STM32WL
4+
#include "STM32WLE5JCInterface.h"
35
#include "error.h"
46

57
#ifndef STM32WLx_MAX_POWER
68
#define STM32WLx_MAX_POWER 22
79
#endif
810

9-
#ifdef ARCH_STM32WL
10-
1111
STM32WLE5JCInterface::STM32WLE5JCInterface(LockingArduinoHal *hal, RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq,
1212
RADIOLIB_PIN_TYPE rst, RADIOLIB_PIN_TYPE busy)
1313
: SX126xInterface(hal, cs, irq, rst, busy)

src/mesh/STM32WLE5JCInterface.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#pragma once
22

3+
#ifdef ARCH_STM32WL
34
#include "SX126xInterface.h"
45
#include "rfswitch.h"
56

6-
#ifdef ARCH_STM32WL
7-
87
/**
98
* Our adapter for STM32WLE5JC radios
109
*/

0 commit comments

Comments
 (0)