Shuffle ifdefs in STM32WLE5JCInterface to make it not get built by other targets

This commit is contained in:
Chloe Bethel 2025-09-02 07:43:09 +01:00
parent 0b361e25f5
commit e714894e41
2 changed files with 4 additions and 5 deletions

View File

@ -1,13 +1,13 @@
#include "STM32WLE5JCInterface.h"
#include "configuration.h"
#ifdef ARCH_STM32WL
#include "STM32WLE5JCInterface.h"
#include "error.h"
#ifndef STM32WLx_MAX_POWER
#define STM32WLx_MAX_POWER 22
#endif
#ifdef ARCH_STM32WL
STM32WLE5JCInterface::STM32WLE5JCInterface(LockingArduinoHal *hal, RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq,
RADIOLIB_PIN_TYPE rst, RADIOLIB_PIN_TYPE busy)
: SX126xInterface(hal, cs, irq, rst, busy)

View File

@ -1,10 +1,9 @@
#pragma once
#ifdef ARCH_STM32WL
#include "SX126xInterface.h"
#include "rfswitch.h"
#ifdef ARCH_STM32WL
/**
* Our adapter for STM32WLE5JC radios
*/