diff --git a/supervisor/facility.lua b/supervisor/facility.lua index 3ec2b82..4b2b38c 100644 --- a/supervisor/facility.lua +++ b/supervisor/facility.lua @@ -425,9 +425,9 @@ function facility.new(config) ready = self.mode_set > 0 - if (self.mode_set == PROCESS.CHARGE) and (self.charge_setpoint <= 0) or - (self.mode_set == PROCESS.GEN_RATE) and (self.gen_rate_setpoint <= 0) or - (self.mode_set == PROCESS.BURN_RATE) and (self.burn_target < 0.1) then + if ((self.mode_set == PROCESS.CHARGE) and (self.charge_setpoint <= 0)) or + ((self.mode_set == PROCESS.GEN_RATE) and (self.gen_rate_setpoint <= 0)) or + ((self.mode_set == PROCESS.BURN_RATE) and (self.burn_target < 0.1)) then ready = false end @@ -436,6 +436,8 @@ function facility.new(config) if ready then self.mode = self.mode_set end end + log.debug(util.c("FAC: process start ", util.trinary(ready, "accepted", "rejected"))) + return { ready, self.mode_set, diff --git a/supervisor/startup.lua b/supervisor/startup.lua index 388ab51..bf702b7 100644 --- a/supervisor/startup.lua +++ b/supervisor/startup.lua @@ -22,7 +22,7 @@ local supervisor = require("supervisor.supervisor") local svsessions = require("supervisor.session.svsessions") -local SUPERVISOR_VERSION = "v1.5.8" +local SUPERVISOR_VERSION = "v1.5.9" local println = util.println local println_ts = util.println_ts