S.PORT PUSH should be OK now on both PXX2 and S.PORT lines

This commit is contained in:
Bertrand Songis
2019-03-30 09:46:36 +01:00
parent 1bd94029e7
commit cc33d5833b
7 changed files with 53 additions and 81 deletions
+4 -4
View File
@@ -156,19 +156,19 @@ local function redrawFieldsPage()
end
local function telemetryRead(fieldx)
return sportTelemetryPush(0, 0x30, 0x0e50, fieldx)
return sportTelemetryPush(0x17, 0x30, 0x0e50, fieldx)
end
local function telemetryIdle(field)
return sportTelemetryPush(0, 0x21, 0x0e50, field)
return sportTelemetryPush(0x17, 0x21, 0x0e50, field)
end
local function telemetryUnIdle(field)
return sportTelemetryPush(0, 0x20, 0x0e50, field)
return sportTelemetryPush(0x17, 0x20, 0x0e50, field)
end
local function telemetryWrite(fieldx, valuex)
return sportTelemetryPush(0, 0x31, 0x0e50, fieldx + valuex*256)
return sportTelemetryPush(0x17, 0x31, 0x0e50, fieldx + valuex*256)
end
local telemetryPopTimeout = 0