diff --git a/src/config.js b/src/config.js index 5d760dae..07d24082 100644 --- a/src/config.js +++ b/src/config.js @@ -1,5 +1,6 @@ const config = { manifests: { + release_mici: 'https://raw.githubusercontent.com/commaai/openpilot/6a68d027d9f00a5b97aa713968fe8d9d8245311e/system/hardware/tici/all-partitions.json', release_tizi: 'https://raw.githubusercontent.com/commaai/openpilot/927548621be1be0c2c9063868b93d1f5020904de/system/hardware/tici/all-partitions.json', release_tici: 'https://raw.githubusercontent.com/commaai/openpilot/927548621be1be0c2c9063868b93d1f5020904de/system/hardware/tici/all-partitions.json', master: 'https://raw.githubusercontent.com/commaai/openpilot/master/system/hardware/tici/all-partitions.json', diff --git a/src/utils/manager.js b/src/utils/manager.js index 23447e54..02ee0279 100644 --- a/src/utils/manager.js +++ b/src/utils/manager.js @@ -223,8 +223,12 @@ export class FlashManager { const deviceType = await this.device.getDeviceType() if (deviceType == 32) { this.manifestUrl = config.manifests.release_tici - } else { + } else if (deviceType == 33) { this.manifestUrl = config.manifests.release_tizi + } else if (deviceType == 34) { + this.manifestUrl = config.manifests.release_mici + } else { + throw new Error('Unknown device type', deviceType) } try {