mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21: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":
|
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/"};
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user