mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-08 15:35:24 +02: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