|
|
@ -61,9 +61,9 @@ void CommsClass::Init() { |
|
|
|
ESP_LOGI(TAG, "LoRa initialized"); |
|
|
|
ESP_LOGI(TAG, "LoRa initialized"); |
|
|
|
#else |
|
|
|
#else |
|
|
|
e32::Config lora_config; |
|
|
|
e32::Config lora_config; |
|
|
|
lora_config.uart_port = UART_NUM_2; |
|
|
|
lora_config.uart_port = LORA_UART; |
|
|
|
lora_config.uart_rx_pin = 13; |
|
|
|
lora_config.uart_rx_pin = LORA_RX; |
|
|
|
lora_config.uart_tx_pin = 15; |
|
|
|
lora_config.uart_tx_pin = LORA_TX; |
|
|
|
ret = lora.Init(lora_config); |
|
|
|
ret = lora.Init(lora_config); |
|
|
|
if (ret != ESP_OK) { |
|
|
|
if (ret != ESP_OK) { |
|
|
|
const char *error_name = esp_err_to_name(ret); |
|
|
|
const char *error_name = esp_err_to_name(ret); |
|
|
|