kopia lustrzana https://github.com/sh123/esp32_loraprs
Fix issue with wrong path being digirepeated
rodzic
e2165619c0
commit
9f216ee30b
|
@ -65,7 +65,9 @@ bool Callsign::ToBinary(byte *txPayload, int bufferLength) const
|
||||||
String Callsign::ToString() const
|
String Callsign::ToString() const
|
||||||
{
|
{
|
||||||
String result = call_;
|
String result = call_;
|
||||||
if (ssid_ != 0) {
|
if (ssid_ == 0) {
|
||||||
|
result += "*";
|
||||||
|
} else {
|
||||||
result += "-" + String(ssid_);
|
result += "-" + String(ssid_);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -75,9 +77,7 @@ bool Callsign::Digirepeat()
|
||||||
{
|
{
|
||||||
if (IsPath()) {
|
if (IsPath()) {
|
||||||
if (ssid_ > 0) {
|
if (ssid_ > 0) {
|
||||||
if (--ssid_ == 0) {
|
ssid_--;
|
||||||
call_ += "*";
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue