Skip to content

Commit f0d37e5

Browse files
committed
Added version identification.
1 parent 9312fe7 commit f0d37e5

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

variants/heltec_v4/HeltecV4Board.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

variants/heltec_v4/LoRaFEMControl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)