mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user