From: Mark Qvist Date: Tue, 10 Dec 2024 15:37:55 +0000 (+0100) Subject: Set default OCP X-Git-Url: https://git.tnoah.ca/?a=commitdiff_plain;h=d599109562edc64e16b51fded9d5a664304bbf17;p=lora-radio.git Set default OCP --- 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