Skip to content

Commit fead6f4

Browse files
committed
Fixed runtime error
1 parent d3cd1dc commit fead6f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

X9.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,17 @@ local function run_bg()
8888

8989
if lastSendTS == 0 or lastSendTS + INTERVAL < getTime() then
9090
local now = getDateTime()
91-
local values = { now.year-2000, now.mon, now.day, now.hour, now.min, now.sec, getRSSI().rssi }
91+
local rssi, alarm_low, alarm_high = getRSSI()
92+
local values = { now.year-2000, now.mon, now.day, now.hour, now.min, now.sec, rssi }
9293

9394
-- send info
9495
mspSendRequest(MSP_SET_TX_INFO, values)
9596

96-
playNumber(getTime(), 0, 0)
97-
9897
lastSendTS = getTime()
9998
end
10099

100+
mspProcessTxQ()
101+
101102
end
102103

103104
--

0 commit comments

Comments
 (0)