mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Pebble: report current firmware string to PebbleKit (eg. "v3.12.2") not "Gadgetbridge"
This commit is contained in:
parent
185605211d
commit
9132736428
@ -63,10 +63,12 @@ public class PebbleContentProvider extends ContentProvider {
|
|||||||
if (prefs.getBoolean("pebble_enable_pebblekit", false)) {
|
if (prefs.getBoolean("pebble_enable_pebblekit", false)) {
|
||||||
appMessage = 1;
|
appMessage = 1;
|
||||||
}
|
}
|
||||||
|
String fwString = "unknown";
|
||||||
if (mGBDevice != null && mGBDevice.getType() == DeviceType.PEBBLE && mGBDevice.isInitialized()) {
|
if (mGBDevice != null && mGBDevice.getType() == DeviceType.PEBBLE && mGBDevice.isInitialized()) {
|
||||||
connected = 1;
|
connected = 1;
|
||||||
|
fwString = mGBDevice.getFirmwareVersion();
|
||||||
}
|
}
|
||||||
mc.addRow(new Object[]{connected, appMessage, 0, 3, 8, 2, "Gadgetbridge"});
|
mc.addRow(new Object[]{connected, appMessage, 0, 3, 8, 2, fwString});
|
||||||
|
|
||||||
return mc;
|
return mc;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user