mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Pebble: Add some Pebble Time 2 support - NOT WORKING
Not working because these are expected to use BLE. The Emulator should work though.
This commit is contained in:
parent
95d9010a17
commit
f9f3c32a2f
@ -112,6 +112,9 @@ public class PBWReader {
|
||||
case "diorite":
|
||||
platformDirs = new String[]{"diorite/", "aplite/"};
|
||||
break;
|
||||
case "emery":
|
||||
platformDirs = new String[]{"emery/", "basalt/"};
|
||||
break;
|
||||
default:
|
||||
platformDirs = new String[]{"aplite/"};
|
||||
}
|
||||
|
@ -251,16 +251,16 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
// base is -8
|
||||
private static final String[] hwRevisions = {
|
||||
// Emulator
|
||||
"silk_bb2", "unknown", "silk_bb",
|
||||
"silk_bb2", "robert_bb", "silk_bb",
|
||||
"spalding_bb2", "snowy_bb2", "snowy_bb",
|
||||
"bb2", "bb",
|
||||
"unknown",
|
||||
// Pebble
|
||||
// Pebble Classic Series
|
||||
"ev1", "ev2", "ev2_3", "ev2_4", "v1_5", "v2_0",
|
||||
// Pebble Time
|
||||
// Pebble Time Series
|
||||
"snowy_evt2", "snowy_dvt", "spalding_dvt", "snowy_s3", "spalding",
|
||||
// Pebble 2
|
||||
"silk_evt", "unknown", "silk"
|
||||
// Pebble 2 Series
|
||||
"silk_evt", "robert_evt", "silk"
|
||||
};
|
||||
|
||||
private static final Random mRandom = new Random();
|
||||
|
@ -9,6 +9,8 @@ public class PebbleUtils {
|
||||
platformName = "chalk";
|
||||
} else if (hwRev.startsWith("silk")) {
|
||||
platformName = "diorite";
|
||||
} else if (hwRev.startsWith("robert")) {
|
||||
platformName = "emery";
|
||||
} else {
|
||||
platformName = "aplite";
|
||||
}
|
||||
@ -24,6 +26,8 @@ public class PebbleUtils {
|
||||
model = "pebble_time_round_black_20mm";
|
||||
} else if (hwRev.startsWith("silk")) {
|
||||
model = "pebble2_black";
|
||||
} else if (hwRev.startsWith("robert")) {
|
||||
model = "pebble_time2_black";
|
||||
} else {
|
||||
model = "pebble_black";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user