Debug Error on Initializing LoRa before going into infinite while loop

This commit is contained in:
theFeiter 2022-07-01 17:26:04 +02:00
parent 96bb331312
commit a58f13f1b3
11 changed files with 19 additions and 8 deletions

View File

@ -121,6 +121,7 @@ void beginFDRS() {
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -121,6 +121,7 @@ void beginFDRS() {
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -121,6 +121,7 @@ void beginFDRS() {
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);

View File

@ -116,11 +116,12 @@ void beginFDRS() {
DBG("Initializing LoRa!");
DBG(BAND);
DBG(SF);
#ifndef __AVR__
#ifdef ESP32
SPI.begin(SCK, MISO, MOSI, SS);
#endif
LoRa.setPins(SS, RST, DIO0);
if (!LoRa.begin(FDRS_BAND)) {
DBG("Unable to initialize LoRa!");
while (1);
}
LoRa.setSpreadingFactor(FDRS_SF);