@@ -196,6 +196,7 @@ local function refreshNext()
|
|||||||
local field = fields[refreshIndex + 1]
|
local field = fields[refreshIndex + 1]
|
||||||
if fieldId == field[3] then
|
if fieldId == field[3] then
|
||||||
local value = math.floor(value / 256)
|
local value = math.floor(value / 256)
|
||||||
|
value = bit32.band(value, 0xffff)
|
||||||
if field[3] >= 0x9E and field[3] <= 0xA0 then
|
if field[3] >= 0x9E and field[3] <= 0xA0 then
|
||||||
local b1 = value % 256
|
local b1 = value % 256
|
||||||
local b2 = math.floor(value / 256)
|
local b2 = math.floor(value / 256)
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ local function refreshNext()
|
|||||||
local field = fields[refreshIndex + 1]
|
local field = fields[refreshIndex + 1]
|
||||||
if fieldId == field[3] then
|
if fieldId == field[3] then
|
||||||
local value = math.floor(value / 256)
|
local value = math.floor(value / 256)
|
||||||
|
value = bit32.band(value, 0xffff)
|
||||||
if field[3] >= 0x9E and field[3] <= 0xA0 then
|
if field[3] >= 0x9E and field[3] <= 0xA0 then
|
||||||
local b1 = value % 256
|
local b1 = value % 256
|
||||||
local b2 = math.floor(value / 256)
|
local b2 = math.floor(value / 256)
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ local function refreshNext()
|
|||||||
local field = fields[refreshIndex + 1]
|
local field = fields[refreshIndex + 1]
|
||||||
if fieldId == field[3] then
|
if fieldId == field[3] then
|
||||||
local value = math.floor(value / 256)
|
local value = math.floor(value / 256)
|
||||||
|
value = bit32.band(value, 0xffff)
|
||||||
if field[3] >= 0x9E and field[3] <= 0xA0 then
|
if field[3] >= 0x9E and field[3] <= 0xA0 then
|
||||||
local b1 = value % 256
|
local b1 = value % 256
|
||||||
local b2 = math.floor(value / 256)
|
local b2 = math.floor(value / 256)
|
||||||
|
|||||||
Reference in New Issue
Block a user