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 95d9010a17
commit f9f3c32a2f
3 changed files with 12 additions and 5 deletions

View File

@ -112,6 +112,9 @@ public class PBWReader {
case "diorite": case "diorite":
platformDirs = new String[]{"diorite/", "aplite/"}; platformDirs = new String[]{"diorite/", "aplite/"};
break; break;
case "emery":
platformDirs = new String[]{"emery/", "basalt/"};
break;
default: default:
platformDirs = new String[]{"aplite/"}; platformDirs = new String[]{"aplite/"};
} }

View File

@ -251,16 +251,16 @@ public class PebbleProtocol extends GBDeviceProtocol {
// base is -8 // base is -8
private static final String[] hwRevisions = { private static final String[] hwRevisions = {
// Emulator // Emulator
"silk_bb2", "unknown", "silk_bb", "silk_bb2", "robert_bb", "silk_bb",
"spalding_bb2", "snowy_bb2", "snowy_bb", "spalding_bb2", "snowy_bb2", "snowy_bb",
"bb2", "bb", "bb2", "bb",
"unknown", "unknown",
// Pebble // Pebble Classic Series
"ev1", "ev2", "ev2_3", "ev2_4", "v1_5", "v2_0", "ev1", "ev2", "ev2_3", "ev2_4", "v1_5", "v2_0",
// Pebble Time // Pebble Time Series
"snowy_evt2", "snowy_dvt", "spalding_dvt", "snowy_s3", "spalding", "snowy_evt2", "snowy_dvt", "spalding_dvt", "snowy_s3", "spalding",
// Pebble 2 // Pebble 2 Series
"silk_evt", "unknown", "silk" "silk_evt", "robert_evt", "silk"
}; };
private static final Random mRandom = new Random(); private static final Random mRandom = new Random();

View File

@ -9,6 +9,8 @@ public class PebbleUtils {
platformName = "chalk"; platformName = "chalk";
} else if (hwRev.startsWith("silk")) { } else if (hwRev.startsWith("silk")) {
platformName = "diorite"; platformName = "diorite";
} else if (hwRev.startsWith("robert")) {
platformName = "emery";
} else { } else {
platformName = "aplite"; platformName = "aplite";
} }
@ -24,6 +26,8 @@ public class PebbleUtils {
model = "pebble_time_round_black_20mm"; model = "pebble_time_round_black_20mm";
} else if (hwRev.startsWith("silk")) { } else if (hwRev.startsWith("silk")) {
model = "pebble2_black"; model = "pebble2_black";
} else if (hwRev.startsWith("robert")) {
model = "pebble_time2_black";
} else { } else {
model = "pebble_black"; model = "pebble_black";
} }