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
+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)