mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-16 10:02:38 +00:00
Added heltec_tracker_v2_companion_radio_usb_femoff and heltec_tracker_v2_companion_radio_usb_femon
This commit is contained in:
@@ -63,6 +63,12 @@ void HeltecTrackerV2Board::begin() {
|
||||
}
|
||||
|
||||
bool HeltecTrackerV2Board::setLoRaFemLnaEnabled(bool enable) {
|
||||
#if defined(RADIO_FEM_RXGAIN) && (RADIO_FEM_RXGAIN == 0)
|
||||
enable = false;
|
||||
#elif defined(RADIO_FEM_RXGAIN) && (RADIO_FEM_RXGAIN == 1)
|
||||
enable = true;
|
||||
#endif
|
||||
|
||||
if (!loRaFEMControl.isLnaCanControl()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -152,6 +152,18 @@ lib_deps =
|
||||
${Heltec_tracker_v2.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
[env:heltec_tracker_v2_companion_radio_usb_femoff]
|
||||
extends = env:heltec_tracker_v2_companion_radio_usb
|
||||
build_flags =
|
||||
${env:heltec_tracker_v2_companion_radio_usb.build_flags}
|
||||
-D RADIO_FEM_RXGAIN=0 ; undefined (default on), 1=on, 0=off
|
||||
|
||||
[env:heltec_tracker_v2_companion_radio_usb_femon]
|
||||
extends = env:heltec_tracker_v2_companion_radio_usb
|
||||
build_flags =
|
||||
${env:heltec_tracker_v2_companion_radio_usb.build_flags}
|
||||
-D RADIO_FEM_RXGAIN=1 ; undefined (default on), 1=on, 0=off
|
||||
|
||||
[env:heltec_tracker_v2_companion_radio_ble]
|
||||
extends = Heltec_tracker_v2
|
||||
build_flags =
|
||||
|
||||
Reference in New Issue
Block a user