Skip to content

Commit a80af0f

Browse files
committed
Supply APRS-IS version from build config version name
1 parent 2fe5565 commit a80af0f

File tree

1 file changed

+2
-1
lines changed
  • codec2talkie/src/main/java/com/radio/codec2talkie/protocol

1 file changed

+2
-1
lines changed

codec2talkie/src/main/java/com/radio/codec2talkie/protocol/AprsIs.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import androidx.preference.PreferenceManager;
1010

11+
import com.radio.codec2talkie.BuildConfig;
1112
import com.radio.codec2talkie.R;
1213
import com.radio.codec2talkie.protocol.aprs.AprsCallsign;
1314
import com.radio.codec2talkie.protocol.aprs.tools.AprsIsData;
@@ -273,7 +274,7 @@ public void run() {
273274
}
274275

275276
private String getLoginCommand() {
276-
String cmd = "user " + _callsign + "-" + _ssid + " pass " + _passcode + " vers " + "C2T 1.56";
277+
String cmd = "user " + _callsign + "-" + _ssid + " pass " + _passcode + " vers " + "C2T " + BuildConfig.VERSION_NAME;
277278
if (_filterRadius > 0) {
278279
cmd += " filter m/" + _filterRadius;
279280
}

0 commit comments

Comments
 (0)