Skip to content

Commit

Permalink
Merge pull request #4 from tibahut/fix-beta-4.081
Browse files Browse the repository at this point in the history
Ajout du fix de Steven pour compenser le bug de la beta 4.082
Merci Thibaut !
  • Loading branch information
sjauquet committed Apr 2, 2016
2 parents 32c525e + 361594e commit 4459980
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions GEA.lua
Expand Up @@ -275,7 +275,8 @@ if (not GEA) then
GEA.insert(entry)
GEA.log("Add Global", entry, GEA.translate[GEA.language]["ADDED_DIRECT"], true, "grey")
end
elseif (GEA.source["type"] == "property" and tonumber(entry[GEA.keys["SECONDES"]]) < 0) then
-- dirty fix fox beta 4.081 GEA.source["type"] == "event"
elseif ((GEA.source["type"] == "property" or GEA.source["type"] == "event") and tonumber(entry[GEA.keys["SECONDES"]]) < 0) then
local id = 0
if (type(entry[GEA.keys["ID"]]) == "number") then
Expand All @@ -289,8 +290,8 @@ if (not GEA) then
end
end
end
if (tonumber(id) == tonumber(GEA.source["deviceID"])) then
-- dirty fox for beta 4.081 GEA.source["type"] == "event"
if ((GEA.source["type"] == "property" and tonumber(id) == tonumber(GEA.source["deviceID"])) or (GEA.source["type"] == "event" and tonumber(id) == tonumber(GEA.source.event.data.id))) then
GEA.insert(entry)
GEA.log("Add Property", entry, GEA.translate[GEA.language]["ADDED_DIRECT"], true, "grey")
end
Expand Down

0 comments on commit 4459980

Please sign in to comment.