Skip to content

Commit e9edfc8

Browse files
authored
Merge pull request meshcore-dev#3188 from oltaco/heltec-t096-pin-fix
Fix Heltec T096 Tx issue
2 parents 956094b + 49d9f9a commit e9edfc8

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/helpers/CommonCLI.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ class NodePrefs : public ConfigSerializer {
8080
def("bw", _parent->bw);
8181
def("sf", _parent->sf);
8282
def("cr", _parent->cr);
83-
static const char radio_cad_key[] = {'c', 'a', 'd', '\0'}; // workaround for T096, don't touch without testing T096 repeater still transmit
84-
def(radio_cad_key, _parent->cad_enabled);
83+
def("cad", _parent->cad_enabled);
8584
def("int_thr", _parent->interference_threshold);
8685
def("rxgain", _parent->rx_boosted_gain);
8786
def("fem_rxgain", _parent->radio_fem_rxgain);

variants/heltec_t096/LoRaFEMControl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ void LoRaFEMControl::setSleepModeEnable(void)
2121

2222
void LoRaFEMControl::setTxModeEnable(void)
2323
{
24-
pinMode(P_LORA_KCT8103L_PA_CTX, OUTPUT); // force pinMode before transmit as temporary workaround for https://github.com/meshcore-dev/MeshCore/issues/3151
2524
digitalWrite(P_LORA_KCT8103L_PA_CSD, HIGH);
2625
digitalWrite(P_LORA_KCT8103L_PA_CTX, HIGH);
2726
}

variants/heltec_t096/variant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
#define PIN_SPI_SCK (32 + 8)
105105
#define PIN_SPI_NSS LORA_CS
106106

107-
#define PIN_SPI1_MISO (-1)
107+
#define PIN_SPI1_MISO (0)
108108
#define PIN_SPI1_MOSI (0+17)
109109
#define PIN_SPI1_SCK (0+20)
110110

0 commit comments

Comments
 (0)