Skip to content

Commit

Permalink
LoRa ESP8266 fix (#1711)
Browse files Browse the repository at this point in the history
* LoRa ESP8266 fix

* Update ZgatewayLORA.ino
  • Loading branch information
nikito7 authored Jul 10, 2023
1 parent 9d8a96a commit b10c96e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/ZgatewayLORA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ boolean _MQTTtoWiPhone(JsonObject& LORAdata) {
}

void setupLORA() {
# ifdef ESP8266
SPI.begin();
# else
SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_SS);
# endif

LoRa.setPins(LORA_SS, LORA_RST, LORA_DI0);

if (!LoRa.begin(LORA_BAND)) {
Expand Down

0 comments on commit b10c96e

Please sign in to comment.