1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 09:17:29 +01:00

Pebble: report current firmware string to PebbleKit (eg. "v3.12.2") not "Gadgetbridge"

This commit is contained in:
Andreas Shimokawa 2017-01-10 22:43:10 +01:00
parent 185605211d
commit 9132736428

View File

@ -63,10 +63,12 @@ public class PebbleContentProvider extends ContentProvider {
if (prefs.getBoolean("pebble_enable_pebblekit", false)) {
appMessage = 1;
}
String fwString = "unknown";
if (mGBDevice != null && mGBDevice.getType() == DeviceType.PEBBLE && mGBDevice.isInitialized()) {
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;
} else {