mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
show coordinates with geo url to open in other mapping app
This commit is contained in:
parent
53745ca9f5
commit
452bf6f6cb
5 changed files with 25 additions and 17 deletions
|
|
@ -1235,7 +1235,7 @@ class MeshService : Service(), Logging {
|
|||
MyNodeInfo(
|
||||
myNodeNum,
|
||||
hasGps,
|
||||
hwModel,
|
||||
hwModelDeprecated,
|
||||
firmwareVersion,
|
||||
firmwareUpdateFilename != null,
|
||||
isBluetoothInterface && SoftwareUpdateService.shouldUpdate(
|
||||
|
|
@ -1545,10 +1545,10 @@ class MeshService : Service(), Logging {
|
|||
*/
|
||||
private fun setFirmwareUpdateFilename(info: MeshProtos.MyNodeInfo) {
|
||||
firmwareUpdateFilename = try {
|
||||
if (info.region != null && info.firmwareVersion != null && info.hwModel != null)
|
||||
if (info.region != null && info.firmwareVersion != null && info.hwModelDeprecated != null)
|
||||
SoftwareUpdateService.getUpdateFilename(
|
||||
this,
|
||||
info.hwModel
|
||||
info.hwModelDeprecated
|
||||
)
|
||||
else
|
||||
null
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ class MockInterface(private val service: RadioInterfaceService) : Logging, IRadi
|
|||
MeshProtos.FromRadio.newBuilder().apply {
|
||||
myInfo = MeshProtos.MyNodeInfo.newBuilder().apply {
|
||||
myNodeNum = MY_NODE
|
||||
hwModel = "Sim"
|
||||
hwModelDeprecated = "Sim"
|
||||
messageTimeoutMsec = 5 * 60 * 1000
|
||||
firmwareVersion = service.getString(R.string.cur_firmware_version)
|
||||
numBands = 13
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue