bugfix
This commit is contained in:
parent
6eddbde4c5
commit
859fb8cbba
1 changed files with 1 additions and 1 deletions
|
@ -758,7 +758,7 @@ var ELEC = {
|
||||||
|
|
||||||
foreach(var lighta; lights) {
|
foreach(var lighta; lights) {
|
||||||
power_consumption = lighta.power_consumption();
|
power_consumption = lighta.power_consumption();
|
||||||
if (getprop(screena.elec_prop) != 0 and getprop(lighta.control_prop) != 0) {
|
if (getprop(lighta.elec_prop) != 0 and getprop(lighta.control_prop) != 0) {
|
||||||
setprop("/systems/electrical/light/" ~ lighta.name ~ "/watts", power_consumption);
|
setprop("/systems/electrical/light/" ~ lighta.name ~ "/watts", power_consumption);
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/electrical/light/" ~ lighta.name ~ "/watts", 0);
|
setprop("/systems/electrical/light/" ~ lighta.name ~ "/watts", 0);
|
||||||
|
|
Reference in a new issue