Pebble: Prepare for Pebble Time Round 2

(This also corrects model strings send to the javascript configuration interface for Pebble 2 Duo and Pebble Time 2)
This commit is contained in:
Andreas Shimokawa
2026-01-04 18:24:38 +01:00
parent 45689ad77a
commit 7d0ee3e93b
2 changed files with 9 additions and 2 deletions
@@ -252,6 +252,7 @@ public class PBWReader {
case "diorite" -> new String[]{"diorite/", "aplite/"};
case "emery" -> new String[]{"emery/", "basalt/"};
case "flint" -> new String[]{"flint/", "diorite/", "aplite/"};
case "gabbro" -> new String[]{"gabbro", "chalk/"};
default -> new String[]{"aplite/"};
};
@@ -58,6 +58,8 @@ public class PebbleUtils {
return "emery";
} else if (hwRev.startsWith("asterix")) {
return "flint";
} else if (hwRev.startsWith("getafix")) {
return "gabbro";
}
return DEFAULT_PLATFORM;
}
@@ -74,10 +76,14 @@ public class PebbleUtils {
return "pebble_time_round_black_20mm";
} else if (hwRev.startsWith("silk")) {
return "pebble2_black";
} else if (hwRev.startsWith("robert") || hwRev.startsWith("obelix")) {
} else if (hwRev.startsWith("robert")) {
return "pebble_time2_black";
} else if (hwRev.startsWith("asterix")) {
return "pebble2_duo_black";
return "coredevices_p2d_black";
} else if (hwRev.startsWith("obelix")) {
return "coredevices_pt2_black_grey";
} else if (hwRev.startsWith("getafix")) {
return "coredevices_ptr2_black";
}
return DEFAULT_MODEL;
}