kopia lustrzana https://github.com/sh123/esp32_loraprs
rodzic
f0fcd6ce03
commit
aba3fd1645
|
@ -62,11 +62,11 @@ bool Callsign::ToBinary(byte *txPayload, int bufferLength) const
|
|||
return true;
|
||||
}
|
||||
|
||||
String Callsign::ToString() const
|
||||
String Callsign::ToString(bool isDigirepeater) const
|
||||
{
|
||||
String result = call_;
|
||||
if (ssid_ == 0) {
|
||||
result += "*";
|
||||
result += isDigirepeater ? "*" : "";
|
||||
} else {
|
||||
result += "-" + String(ssid_);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ public:
|
|||
inline bool IsWide() const { return call_.startsWith("WIDE"); }
|
||||
inline bool IsPath() const { return IsWide(); }
|
||||
|
||||
String ToString() const;
|
||||
String ToString(bool isDigirepeater=false) const;
|
||||
bool ToBinary(byte *txPayload, int bufferLength) const;
|
||||
|
||||
bool Digirepeat();
|
||||
|
|
|
@ -96,7 +96,7 @@ String Payload::ToString(const String &customComment) const
|
|||
|
||||
for (int i = 0; i < rptCallsCount_; i++) {
|
||||
if (rptCalls_[i].IsValid()) {
|
||||
txt += String(",") + rptCalls_[i].ToString();
|
||||
txt += String(",") + rptCalls_[i].ToString(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue