Merge branch 'robot-event-triggers' of github.com:Team-1280/Jankboard-2 into robot-event-triggers

This commit is contained in:
Youwen Wu 2024-03-07 13:06:44 -08:00
commit 884014e810
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -24,7 +24,7 @@ export const initializeTelemetry = async () => {
telemetryStore.set(data['topic_name'], data['data'])
})
const unlistenGpws = await listen('telemetry_gpws', (event) => {
const unlistenGPWS = await listen('telemetry_gpws', (event) => {
const data = JSON.parse(event.payload as string) as boolean
if (data) {
gpwsTriggeredSequence()
@ -34,7 +34,7 @@ export const initializeTelemetry = async () => {
const unlistenAll = () => {
unlistenStatus()
unlistenTelemetry()
unlistenGpws()
unlistenGPWS()
}
return unlistenAll