kopia lustrzana https://github.com/sh123/esp32_loraprs
Minor rename to conform to ax25
rodzic
757ba99135
commit
c88ed243bc
|
@ -17,9 +17,9 @@ String Payload::ToText(const String &customComment)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
txt += String(":") + body_;
|
txt += String(":") + info_;
|
||||||
|
|
||||||
if (body_.startsWith("=")) {
|
if (info_.startsWith("=")) {
|
||||||
txt += customComment;
|
txt += customComment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ bool Payload::parsePayload(byte *rxPayload, int payloadLength)
|
||||||
|
|
||||||
// information field
|
// information field
|
||||||
while (rxPtr < rxEnd) {
|
while (rxPtr < rxEnd) {
|
||||||
body_ += String((char)*(rxPtr++));
|
info_ += String((char)*(rxPtr++));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -31,7 +31,7 @@ private:
|
||||||
String srcCall_, dstCall_;
|
String srcCall_, dstCall_;
|
||||||
String rptCalls_[7];
|
String rptCalls_[7];
|
||||||
int rptCallsCount_;
|
int rptCallsCount_;
|
||||||
String body_;
|
String info_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // AX25
|
} // AX25
|
||||||
|
|
Ładowanie…
Reference in New Issue