Skip to content

Commit 1f8983a

Browse files
committed
Add key + variant to allow for multiple versions of same hardware
1 parent 0d641ae commit 1f8983a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/lib/resource.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export interface DeviceHardware {
1313
hasMui?: boolean;
1414
hasInkHud?: boolean;
1515
url?: string; // Override URL for the device (for actively supported devices only)
16+
key?: string; // Optional key to differentiate multiple entries for the same hwModel
17+
variant?: string; // Optional variant to differentiate multiple entries for the same hwModel
1618
}
1719

1820
export const deviceHardwareList: DeviceHardware[] = [
@@ -739,6 +741,23 @@ export const deviceHardwareList: DeviceHardware[] = [
739741
images: ["heltec_mesh_pocket.svg"],
740742
requiresDfu: true,
741743
hasInkHud: true,
744+
key: "HELTEC_MESH_POCKET",
745+
variant: "10000mAh",
746+
},
747+
{
748+
hwModel: 94,
749+
hwModelSlug: "HELTEC_MESH_POCKET",
750+
platformioTarget: "heltec-mesh-pocket-5000",
751+
architecture: "nrf52840",
752+
activelySupported: true,
753+
supportLevel: 1,
754+
displayName: "Heltec MeshPocket",
755+
tags: ["Heltec"],
756+
images: ["heltec_mesh_pocket.svg"],
757+
requiresDfu: true,
758+
hasInkHud: true,
759+
key: "HELTEC_MESH_POCKET",
760+
variant: "5000mAh",
742761
},
743762
{
744763
hwModel: 95,

0 commit comments

Comments
 (0)