File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ void HeltecV4Board::begin() {
7878 }
7979
8080 const char * HeltecV4Board::getManufacturerName () const {
81- #ifdef HELTEC_LORA_V4_TFT
82- return " Heltec V4 TFT" ;
83- #else
84- return " Heltec V4 OLED" ;
85- #endif
81+ #ifdef HELTEC_LORA_V4_TFT
82+ return loRaFEMControl. getFEMType () == KCT8103L_PA ? " Heltec V4.3 TFT " : " Heltec V4 TFT" ;
83+ #else
84+ return loRaFEMControl. getFEMType () == KCT8103L_PA ? " Heltec V4.3 OLED " : " Heltec V4 OLED" ;
85+ #endif
8686 }
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ class LoRaFEMControl
2020 void setLNAEnable (bool enabled);
2121 bool isLnaCanControl (void ) { return lna_can_control; }
2222 void setLnaCanControl (bool can_control) { lna_can_control = can_control; }
23+ LoRaFEMType getFEMType (void ) const { return fem_type; }
2324 private:
24- LoRaFEMType fem_type;
25+ LoRaFEMType fem_type= OTHER_FEM_TYPES ;
2526 bool lna_enabled=false ;
2627 bool lna_can_control=false ;
2728};
You can’t perform that action at this time.
0 commit comments