Fix telemetry and some more models

This commit is contained in:
Niklas Jensen
2026-01-01 23:13:22 +01:00
committed by nikguin04
parent 19ebceb959
commit 1117666f26
7 changed files with 611 additions and 51 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import { DownloadOTAData, RSSIData } from '$lib/platform_shared/websocket_message'
import { DownloadOTA } from '$lib/types/models'
import { writable } from 'svelte/store'
type telemetry_data_type = {
@@ -16,7 +15,7 @@ function createTelemetry() {
setRSSI: (data: RSSIData) => {
update(telemetry_data => { telemetry_data.rssi = data; return telemetry_data })
},
setDownloadOTA: (data: DownloadOTA) => {
setDownloadOTA: (data: DownloadOTAData) => {
update(telemetry_data => { telemetry_data.download_ota = data; return telemetry_data })
}
}