[SX127x] Fixed error on newer compilers (CI_BUILD_ALL)

pull/473/head 5.1.2
jgromes 2022-02-06 19:04:03 +01:00
rodzic bc30785bea
commit 1017ec99fd
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -115,7 +115,8 @@ void setup() {
// start transmitting the first packet
Serial.print(F("[SX1278] Sending first packet ... "));
transmissionState = radio.startTransmit(longPacket + packetCounter);
String packet = longPacket + packetCounter;
transmissionState = radio.startTransmit(packet);
}
void loop() {
@ -156,7 +157,8 @@ void loop() {
// send another packet
Serial.print(F("[SX1278] Sending another packet ... "));
transmissionState = radio.startTransmit(longPacket + packetCounter);
String packet = longPacket + packetCounter;
transmissionState = radio.startTransmit(packet);
}
// check if we need to do another frequency hop