Merge branch 'robot-event-triggers' of github.com:Team-1280/Jankboard-2 into robot-event-triggers
This commit is contained in:
commit
884014e810
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ export const initializeTelemetry = async () => {
|
||||||
telemetryStore.set(data['topic_name'], data['data'])
|
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
|
const data = JSON.parse(event.payload as string) as boolean
|
||||||
if (data) {
|
if (data) {
|
||||||
gpwsTriggeredSequence()
|
gpwsTriggeredSequence()
|
||||||
|
@ -34,7 +34,7 @@ export const initializeTelemetry = async () => {
|
||||||
const unlistenAll = () => {
|
const unlistenAll = () => {
|
||||||
unlistenStatus()
|
unlistenStatus()
|
||||||
unlistenTelemetry()
|
unlistenTelemetry()
|
||||||
unlistenGpws()
|
unlistenGPWS()
|
||||||
}
|
}
|
||||||
|
|
||||||
return unlistenAll
|
return unlistenAll
|
||||||
|
|
Loading…
Reference in a new issue