1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 17:45:50 +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:
Andreas Shimokawa 2016-07-04 22:09:56 +02:00
parent 966b9abb87
commit 73b2fc357e
3 changed files with 12 additions and 5 deletions

View File

@ -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/"};
}

View File

@ -252,16 +252,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();

View File

@ -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";
}