diff --git a/src/stores/mainVehicle.ts b/src/stores/mainVehicle.ts index 3486866bc..b8617c5df 100644 --- a/src/stores/mainVehicle.ts +++ b/src/stores/mainVehicle.ts @@ -471,9 +471,12 @@ export const useMainVehicleStore = defineStore('main-vehicle', () => { }) if (usedGenericVariables.value.includes(blueosVariablesAddresses.cpuTemp)) { - getCpuTempCelsius(globalAddress.value).then((temp) => { + try { + const temp = await getCpuTempCelsius(globalAddress.value) Object.assign(genericVariables, { ...genericVariables, ...{ [blueosVariablesAddresses.cpuTemp]: temp } }) - }) + } catch (error) { + console.error(error) + } } }, 1000)