Skip to content

Commit 6d26e99

Browse files
authored
Merge pull request #174 from NASA-AMMOS/issue-173
Issue #173 - Update GUI refresh handler
2 parents 76437ba + 2d4f45c commit 6d26e99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ait/gui/static/js/ait/gui/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ function init () {
173173
})
174174

175175
ait.tlm = {dict: {}}
176+
176177
ait.tlm.promise = m.request({ url: '/tlm/dict' })
177178
ait.tlm.promise.then((dict) => {
178179
const proto = location.protocol === 'https:' ? 'wss' : 'ws'
@@ -181,9 +182,9 @@ function init () {
181182
ait.tlm.dict = TelemetryDictionary.parse(dict)
182183
ait.tlm.stream = new TelemetryStream(url, ait.tlm.dict)
183184

184-
ait.events.on('ait:tlm:packet', () => {
185+
setInterval(() => {
185186
m.redraw()
186-
})
187+
}, 1000)
187188
})
188189

189190
m.request({url: '/limits/dict'}).then((dict) => {

0 commit comments

Comments
 (0)