From c4259d9b6c4e00688c21c2b872a4b7b55d8c9b4a Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Sat, 12 Oct 2024 22:23:15 +0100 Subject: [PATCH] Change model code for T3S3 SX1280 w/ PA --- Boards.h | 3 ++- Makefile | 2 +- Radio.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Boards.h b/Boards.h index 898aa48..9d913fd 100644 --- a/Boards.h +++ b/Boards.h @@ -81,7 +81,8 @@ #define BOARD_T3S3 0x42 // T3S3 - sold by LilyGO #define MODEL_A1 0xA1 // T3S3 SX1262 868/915 MHz #define MODEL_AB 0xAB // T3S3 SX1276 868/915 MHz - #define MODEL_A5 0xA5 // T3S3 SX1280 PA (2.4GHz) + #define MODEL_A5 0xA5 // T3S3 SX1278 433 MHz + #define MODEL_AB 0xAB // T3S3 SX1280 2.4 GHz w/ PA #define PRODUCT_TECHO 0x15 // LilyGO T-Echo devices #define BOARD_TECHO 0x43 diff --git a/Makefile b/Makefile index e463d3f..2fa721b 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ firmware-t3s3_sx126x: arduino-cli compile --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc" $(COMMON_BUILD_FLAGS) --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x42\" \"-DBOARD_VARIANT=0xA1\"" firmware-t3s3_sx1280_pa: - arduino-cli compile --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc" $(COMMON_BUILD_FLAGS) --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x42\" \"-DBOARD_VARIANT=0xA5\"" + arduino-cli compile --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc" $(COMMON_BUILD_FLAGS) --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x42\" \"-DBOARD_VARIANT=0xAB\"" firmware-e22_esp32: arduino-cli compile --fqbn esp32:esp32:esp32 $(COMMON_BUILD_FLAGS) --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x44\" \"-DEXTERNAL_LEDS=true\"" diff --git a/Radio.cpp b/Radio.cpp index 05b485b..0f34c5c 100644 --- a/Radio.cpp +++ b/Radio.cpp @@ -2346,7 +2346,7 @@ void sx128x::setTxPower(int level, int outputPin) { executeOpcode(OP_TX_PARAMS_8X, tx_buf, 2); - #elif BOARD_VARIANT == MODEL_A5 + #elif BOARD_VARIANT == MODEL_AB // T3S3 SX1280 PA if (level > 20) { level = 20;