Skip to content

Commit

Permalink
🔀 Merge branch 'yann/feature/lekaupdater/estimate-version-based-on-na…
Browse files Browse the repository at this point in the history
…me-connection-view'
  • Loading branch information
ladislas committed Sep 18, 2023
2 parents 54e4e86 + cfba279 commit 15e424d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ struct RobotDiscoveryView: View {

private var osVersionText: String {
guard let osVersion = discovery.osVersion else {
if discovery.name == "Leka" {
return "LekaOS-v1.0.0"
} else if discovery.name.contains("LK-") && discovery.name.contains("xx") {
return "LekaOS-v1.1.0"
} else if discovery.name.contains("LK-") {
return "LekaOS-v1.2.0"
}

return "n/a"
}
return "LekaOS-v\(osVersion)"
Expand Down

0 comments on commit 15e424d

Please sign in to comment.