mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Pebble: Display active firmware slot (for 2 slot watches) in watch details
This commit is contained in:
+1
@@ -2470,6 +2470,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
int runningSlot = mIsSlot0 ? 0 : 1;
|
||||
int targetSlot = mIsSlot0 ? 1 : 0;
|
||||
versionCmd.fwUpdateTargetSlot = targetSlot;
|
||||
versionCmd.fwVersion2 = "slot " + runningSlot + " active";
|
||||
LOG.info("Dual-slot firmware detected: running slot {}, will update slot {}", runningSlot, targetSlot);
|
||||
}
|
||||
int hwRev = buf.get() & 0xFF; // Convert to unsigned
|
||||
|
||||
Reference in New Issue
Block a user