[SX127x] Fixed error on newer compilers (CI_BUILD_ALL)

This commit is contained in:
jgromes 2022-02-06 19:04:03 +01:00
parent bc30785bea
commit 1017ec99fd

View file

@ -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