Added version identification.

This commit is contained in:
Quency-D 2026-02-27 16:49:00 +08:00
parent 9312fe780a
commit f0d37e552d
2 changed files with 7 additions and 6 deletions

View file

@ -78,9 +78,9 @@ void HeltecV4Board::begin() {
}
const char* HeltecV4Board::getManufacturerName() const {
#ifdef HELTEC_LORA_V4_TFT
return "Heltec V4 TFT";
#else
return "Heltec V4 OLED";
#endif
#ifdef HELTEC_LORA_V4_TFT
return loRaFEMControl.getFEMType() == KCT8103L_PA ? "Heltec V4.3 TFT" : "Heltec V4 TFT";
#else
return loRaFEMControl.getFEMType() == KCT8103L_PA ? "Heltec V4.3 OLED" : "Heltec V4 OLED";
#endif
}

View file

@ -20,8 +20,9 @@ class LoRaFEMControl
void setLNAEnable(bool enabled);
bool isLnaCanControl(void) { return lna_can_control; }
void setLnaCanControl(bool can_control) { lna_can_control = can_control; }
LoRaFEMType getFEMType(void) const { return fem_type; }
private:
LoRaFEMType fem_type;
LoRaFEMType fem_type=OTHER_FEM_TYPES;
bool lna_enabled=false;
bool lna_can_control=false;
};