Skip to content

Commit c59b9fc

Browse files
committed
Merge branch 'drop-v'
2 parents 9e42e21 + c03229b commit c59b9fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontends/ios/BitBoxApp/BitBoxApp/Bluetooth.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,10 @@ class BluetoothDeviceInfo: NSObject, MobileserverGoDeviceInfoInterfaceProtocol {
498498
}
499499

500500
func serial() -> String {
501-
return "v" + productInfo.version
501+
// BitBox delivers the version with the `v` prefix, and adding it manually here can be
502+
// dropped at some point. Only testing firmwares before the first release did not include
503+
// the prefix.
504+
return productInfo.version.hasPrefix("v") ? productInfo.version : "v" + productInfo.version
502505
}
503506

504507
func usagePage() -> Int {

0 commit comments

Comments
 (0)