Browse Source
Merge pull request #192 from fdlamotte/prevent-errors-when-built-against-XiaoNrf52Board-by-error
compiles xiao_nrf52 board files only if we compile for xiao_nrf52
pull/202/head
ripplebiz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
0 deletions
-
src/helpers/nrf52/XiaoNrf52Board.cpp
-
src/helpers/nrf52/XiaoNrf52Board.h
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#ifdef XIAO_NRF52 |
|
|
|
|
|
|
|
#include <Arduino.h> |
|
|
|
#include "XiaoNrf52Board.h" |
|
|
|
|
|
|
|
@ -89,3 +91,5 @@ bool XiaoNrf52Board::startOTAUpdate(const char* id, char reply[]) { |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
@ -3,6 +3,8 @@ |
|
|
|
#include <MeshCore.h> |
|
|
|
#include <Arduino.h> |
|
|
|
|
|
|
|
#ifdef XIAO_NRF52 |
|
|
|
|
|
|
|
// LoRa radio module pins for Seeed Xiao-nrf52
|
|
|
|
#ifdef SX1262_XIAO_S3_VARIANT |
|
|
|
#define P_LORA_DIO_1 D0 |
|
|
|
@ -73,3 +75,5 @@ public: |
|
|
|
|
|
|
|
bool startOTAUpdate(const char* id, char reply[]) override; |
|
|
|
}; |
|
|
|
|
|
|
|
#endif |