Skip to content

Commit

Permalink
export.lua: Convert bool to int before formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
walmis committed Sep 15, 2024
1 parent c8c7fc6 commit e7b725f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions export/TelemFFB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,9 @@ local f_telemFFB = {
local formattedValues = {}
for _, item in ipairs(items) do
local value = item[3]
if type(value) == "boolean" then
value = value and 1 or 0
end
if value ~= nil then
local formattedValue = string.format(item[2], value)
table.insert(formattedValues, item[1] .. "=" .. formattedValue)
Expand Down

0 comments on commit e7b725f

Please sign in to comment.