Skip to content

Commit 0e93851

Browse files
committed
stop polling ELRS status from the VTX Admin widget
The widget requested ELRS_STATUS every 2 seconds by writing field 0, but nothing under WIDGETS/ELRSVTXAdmin ever read the resulting hasTelemetry, modelMismatch or elrsFlagsInfo state. The UI is driven entirely by the folder PARAMETER_READ sent alongside it. On the TX side that write only triggers an ELRS_STATUS reply; it sets no mode, arms no timer and raises no device event, so dropping it changes no behaviour and halves the widget's steady-state traffic. It also bypassed the CRSF singleton's rate limiter, so with the Telemetry widget loaded the two sent 1.5 status writes per second instead of 1.
1 parent 5caa3c6 commit 0e93851

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/WIDGETS/ELRSVTXAdmin/loadable.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ function Protocol.sendParameterWrite(fieldId, value)
200200
)
201201
end
202202

203-
--- Request ELRS_STATUS (connection state) by writing field 0.
204-
function Protocol.sendStatusPoll()
205-
Protocol.sendParameterWrite(0, 0)
206-
end
207-
208203
-- ============================================================================
209204
-- Protocol: Response handler (registered on singleton dispatcher)
210205
-- ============================================================================
@@ -315,7 +310,6 @@ function Protocol.tick()
315310
if now - Protocol.lastFolderPoll >= Protocol.FOLDER_POLL_INTERVAL then
316311
Protocol.lastFolderPoll = now
317312
Protocol.sendParameterRead(VTX.ids.folder)
318-
Protocol.sendStatusPoll()
319313
end
320314
elseif st == Protocol.STATE_SENDING then
321315
if Protocol.writeIdx <= #Protocol.writeQueue then

0 commit comments

Comments
 (0)