Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Fix Pygate LoRa rx lock-up after LoRa tx #561

Open
wants to merge 1 commit into
base: Dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions esp32/pygate/concentrator/cmd_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ int cmd_manager_DecodeCmd(uint8_t *BufFromHost) {
}

/* Switch off SX1308 correlators to reduce power consumption during transmit */
esp_lgw_reg_w(LGW_CLKHS_EN, 0);
//esp_lgw_reg_w(LGW_CLKHS_EN, 0);

/* Send packet */
SX1308.txongoing = 1;
Expand Down Expand Up @@ -359,16 +359,16 @@ int cmd_manager_DecodeCmd(uint8_t *BufFromHost) {
}

/* reset Sx1308 */
sx1308_dig_reset();
//sx1308_dig_reset();

/* Switch SX1308 correlators back on */
esp_lgw_reg_w(LGW_CLKHS_EN, 1);
//esp_lgw_reg_w(LGW_CLKHS_EN, 1);

/* restart SX1308 */
x = esp_lgw_start();
if (x < 0) {
//x = esp_lgw_start();
//if (x < 0) {
//pc.printf("lgw_start() failed\n");
}
//}

/* Send command answer */
BufToHost[0] = 'f';
Expand Down