From d599109562edc64e16b51fded9d5a664304bbf17 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 10 Dec 2024 16:37:55 +0100 Subject: [PATCH] Set default OCP --- Boards.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Boards.h b/Boards.h index c3b9c66..ce3f90a 100644 --- a/Boards.h +++ b/Boards.h @@ -145,10 +145,6 @@ #define HAS_TCXO true #endif - // Default OCP value if not specified - // in board configuration - #define OCP_TUNED 0x38 - #if MCU_VARIANT == MCU_1284P const int pin_cs = 4; const int pin_reset = 3; @@ -632,4 +628,10 @@ #define DIO2_AS_RF_SWITCH false #endif + // Default OCP value if not specified + // in board configuration + #ifndef OCP_TUNED + #define OCP_TUNED 0x38 + #endif + #endif