Merge pull request #11415 from VOREStation/upstream-merge-8207

[MIRROR] Farmbot can be turned off, not just on
This commit is contained in:
Aronai Sieyes
2021-08-13 23:01:20 -04:00
committed by GitHub
+1 -10
View File
@@ -96,18 +96,9 @@
turn_on()
. = TRUE
switch(action)
if("power")
if(!access_scanner.allowed(src))
return FALSE
if(on)
turn_off()
else
turn_on()
. = TRUE
if(locked)
return TRUE
switch(action)
if("water")
waters_trays = !waters_trays