1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Change physical ID for remote SPORT lua scripts to 0x17 to avoid conflict with existing sensor. Also matches info from back in 2013 and FrSky's own implmentation of a ground setup device (smart dashboard).

Should actually be an OpenTX setting, possibly even hardcoded instead of scripts being able to choose it.
This commit is contained in:
Andre Bernet 2017-02-01 22:44:41 +01:00
parent 4554f19a4a
commit d2415b35db
3 changed files with 6 additions and 6 deletions

View file

@ -141,11 +141,11 @@ local function redrawFieldsPage(event)
end
local function telemetryRead(field)
return sportTelemetryPush(0x1B, 0x30, 0x0C30, field)
return sportTelemetryPush(0x17, 0x30, 0x0C30, field)
end
local function telemetryWrite(field, value)
return sportTelemetryPush(0x1B, 0x31, 0x0C30, field + value*256)
return sportTelemetryPush(0x17, 0x31, 0x0C30, field + value*256)
end
local telemetryPopTimeout = 0

View file

@ -117,11 +117,11 @@ local function redrawFieldsPage()
end
local function telemetryRead(field)
return sportTelemetryPush(0x1B, 0x30, 0x0C30, field)
return sportTelemetryPush(0x17, 0x30, 0x0C30, field)
end
local function telemetryWrite(field, value)
return sportTelemetryPush(0x1B, 0x31, 0x0C30, field + value*256)
return sportTelemetryPush(0x17, 0x31, 0x0C30, field + value*256)
end
local telemetryPopTimeout = 0

View file

@ -87,11 +87,11 @@ local function redrawFieldsPage()
end
local function telemetryRead(field)
return sportTelemetryPush(0x1B, 0x30, 0x0C30, field)
return sportTelemetryPush(0x17, 0x30, 0x0C30, field)
end
local function telemetryWrite(field, value)
return sportTelemetryPush(0x1B, 0x31, 0x0C30, field + value*256)
return sportTelemetryPush(0x17, 0x31, 0x0C30, field + value*256)
end
local telemetryPopTimeout = 0