Move variant specific code

This commit is contained in:
Alexander Begoon 2025-08-08 23:04:14 +02:00
parent ce4e559c01
commit 6902dd81fa
No known key found for this signature in database
GPG key ID: F01186236E5A930D
4 changed files with 4 additions and 1 deletions

View file

@ -47,3 +47,5 @@ mesh::LocalIdentity radio_new_identity() {
RadioNoiseListener rng(radio);
return mesh::LocalIdentity(&rng); // create new random identity
}

View file

@ -28,6 +28,7 @@ build_flags =
-D DISABLE_WIFI_OTA=1
build_src_filter = ${esp32c6_base.build_src_filter}
+<../variants/xiao_c6>
+<XiaoC6Board.cpp>
[env:Xiao_C6_Repeater]
extends = Xiao_C6

View file

@ -2,9 +2,9 @@
#define RADIOLIB_STATIC_ONLY 1
#include <RadioLib.h>
#include <XiaoC6Board.h>
#include <helpers/radiolib/RadioLibWrappers.h>
#include <helpers/ESP32Board.h>
#include <helpers/esp32/XiaoC6Board.h>
#include <helpers/radiolib/CustomSX1262Wrapper.h>
#include <helpers/AutoDiscoverRTCClock.h>
#include <helpers/SensorManager.h>