Skip to content

Commit

Permalink
getVersion() now returns two values, make sure we only pass the one w…
Browse files Browse the repository at this point in the history
…e care about
  • Loading branch information
toggledbits committed Jan 15, 2017
1 parent 03359ae commit 46d198f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion I_DeusExMachinaII1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
-- Ugly hack. Luup seems to only be able to return values from related state variables (see S_), so use a temp
-- one to store the result we want to pass back. Blech. C'mon guys. Amateur hour. Add an extra return argument
-- for a table of return values or something, please?
luup.variable_set("urn:toggledbits-com:serviceId:DeusExMachinaII1", "TempStorage", demII.getVersion(), lul_device)
local vs, vn = demII.getVersion()
luup.variable_set("urn:toggledbits-com:serviceId:DeusExMachinaII1", "TempStorage", vs, lul_device)
return true
</run>
</action>
Expand Down

0 comments on commit 46d198f

Please sign in to comment.