]> git.tnoah.ca Git - lora-radio.git/commitdiff
Set default OCP
authorMark Qvist <mark@unsigned.io>
Tue, 10 Dec 2024 15:37:55 +0000 (16:37 +0100)
committerMark Qvist <mark@unsigned.io>
Tue, 10 Dec 2024 15:37:55 +0000 (16:37 +0100)
Boards.h

index c3b9c662681687bab66a1593c3a8d43bda4d1d1f..ce3f90a46ff447006b089c8b4f367013aded1b31 100644 (file)
--- a/Boards.h
+++ b/Boards.h
       #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;
     #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