Fix for S6R that are not showing quick mode for unknown reason (#5768)

This commit is contained in:
3djc
2018-03-17 18:20:42 +04:00
committed by Andre Bernet
parent dd5fb2cf88
commit 1ffc4b9f7f
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ set(VERSION_REVISION "2")
set(VERSION_SUFFIX $ENV{OPENTX_VERSION_SUFFIX})
set(VERSION_FAMILY ${VERSION_MAJOR}.${VERSION_MINOR})
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}${VERSION_SUFFIX})
set(SDCARD_REVISION "0014")
set(SDCARD_REVISION "0015")
set(SDCARD_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}V${SDCARD_REVISION})
cmake_minimum_required(VERSION 2.8)
+3
View File
@@ -194,6 +194,9 @@ local function refreshNext()
local field = fields[refreshIndex + 1]
if fieldId == field[3] then
local value = math.floor(value / 256)
if field[3] == 0xAA then
value = bit32.band(value, 0x0001)
end
if field[3] >= 0x9E and field[3] <= 0xA0 then
local b1 = value % 256
local b2 = math.floor(value / 256)
+3
View File
@@ -159,6 +159,9 @@ local function refreshNext()
local field = fields[refreshIndex + 1]
if fieldId == field[3] then
local value = math.floor(value / 256)
if field[3] == 0xAA then
value = bit32.band(value, 0x0001)
end
if field[3] >= 0x9E and field[3] <= 0xA0 then
local b1 = value % 256
local b2 = math.floor(value / 256)
+3
View File
@@ -161,6 +161,9 @@ local function refreshNext()
local field = fields[refreshIndex + 1]
if fieldId == field[3] then
local value = math.floor(value / 256)
if field[3] == 0xAA then
value = bit32.band(value, 0x0001)
end
if field[3] >= 0x9E and field[3] <= 0xA0 then
local b1 = value % 256
local b2 = math.floor(value / 256)