LoRa ESP8266 fix (#1711)

* LoRa ESP8266 fix

* Update ZgatewayLORA.ino
This commit is contained in:
nikito7 authored and GitHub committed 2023-07-10 04:11:19 -05:00
1 parent 9d8a96a5af
commit b10c96ee32
1 file changed
+5
+5
View File
@@ -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)) {