diff --git a/radio/sdcard/horus/CROSSFIRE/device.lua b/radio/sdcard/horus/CROSSFIRE/device.lua index e733dc5a6..1a52e80dc 100644 --- a/radio/sdcard/horus/CROSSFIRE/device.lua +++ b/radio/sdcard/horus/CROSSFIRE/device.lua @@ -320,7 +320,7 @@ local function fieldCommandLoad(field, data, offset) field.status = data[offset] field.timeout = data[offset+1] field.info, offset = fieldGetString(data, offset+2) - if field.status < 2 or field.status > 3 then + if field.status == 0 then fieldPopup = nil end end @@ -407,7 +407,7 @@ local function refreshNext() if fieldPopup then if time > fieldTimeout then local frame = { deviceId, 0xEA, fieldPopup.id } - crossfireTelemetryPush(0x2D, frame) + crossfireTelemetryPush(0x2D, { deviceId, 0xEA, fieldPopup.id, 6 }) fieldTimeout = time + fieldPopup.timeout end elseif time > fieldTimeout and not edit then diff --git a/radio/sdcard/taranis-x7/SCRIPTS/TOOLS/CROSSFIRE/device.lua b/radio/sdcard/taranis-x7/SCRIPTS/TOOLS/CROSSFIRE/device.lua index 27900f5b1..3ed86aec6 100644 --- a/radio/sdcard/taranis-x7/SCRIPTS/TOOLS/CROSSFIRE/device.lua +++ b/radio/sdcard/taranis-x7/SCRIPTS/TOOLS/CROSSFIRE/device.lua @@ -315,7 +315,7 @@ local function fieldCommandLoad(field, data, offset) field.status = data[offset] field.timeout = data[offset+1] field.info, offset = fieldGetString(data, offset+2) - if field.status < 2 or field.status > 3 then + if field.status == 0 then fieldPopup = nil end end @@ -402,7 +402,7 @@ local function refreshNext() if fieldPopup then if time > fieldTimeout then local frame = { deviceId, 0xEA, fieldPopup.id } - crossfireTelemetryPush(0x2D, frame) + crossfireTelemetryPush(0x2D, { deviceId, 0xEA, fieldPopup.id, 6 }) fieldTimeout = time + fieldPopup.timeout end elseif time > fieldTimeout and not edit then diff --git a/radio/sdcard/taranis-x9/SCRIPTS/TOOLS/CROSSFIRE/device.lua b/radio/sdcard/taranis-x9/SCRIPTS/TOOLS/CROSSFIRE/device.lua index ee3f87958..d873acb61 100644 --- a/radio/sdcard/taranis-x9/SCRIPTS/TOOLS/CROSSFIRE/device.lua +++ b/radio/sdcard/taranis-x9/SCRIPTS/TOOLS/CROSSFIRE/device.lua @@ -315,7 +315,7 @@ local function fieldCommandLoad(field, data, offset) field.status = data[offset] field.timeout = data[offset+1] field.info, offset = fieldGetString(data, offset+2) - if field.status < 2 or field.status > 3 then + if field.status == 0 then fieldPopup = nil end end @@ -402,7 +402,7 @@ local function refreshNext() if fieldPopup then if time > fieldTimeout then local frame = { deviceId, 0xEA, fieldPopup.id } - crossfireTelemetryPush(0x2D, frame) + crossfireTelemetryPush(0x2D, { deviceId, 0xEA, fieldPopup.id, 6 }) fieldTimeout = time + fieldPopup.timeout end elseif time > fieldTimeout and not edit then