Add * suffix for digirepaters only

pull/42/head 1.0.4
sh123 2022-12-01 19:24:57 +02:00
rodzic f0fcd6ce03
commit aba3fd1645
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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_);
}

Wyświetl plik

@ -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();

Wyświetl plik

@ -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);
}
}