mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 19:15:11 +01:00
Merge pull request #11415 from VOREStation/upstream-merge-8207
[MIRROR] Farmbot can be turned off, not just on
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user