From 1a304a40d466eec8ebac9896dfc087de6de08639 Mon Sep 17 00:00:00 2001 From: jgyates Date: Fri, 20 Dec 2024 09:05:53 -0500 Subject: [PATCH] V1.19.04 --- genmonlib/custom_controller.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/genmonlib/custom_controller.py b/genmonlib/custom_controller.py index 8280449..287215a 100644 --- a/genmonlib/custom_controller.py +++ b/genmonlib/custom_controller.py @@ -279,6 +279,8 @@ def IdentifyController(self): self.NominalLineVolts = TempValue elif self.StringIsInt(TempValue): self.NominalLineVolts = int(TempValue) + elif type(TempValue) == str and TempValue.lower() == "unknown": + self.NominalLineVolts = 240 else: self.LogDebug("Nominal Line Volts: " + str(self.NominalLineVolts)) @@ -291,6 +293,8 @@ def IdentifyController(self): self.NominalBatteryVolts = TempValue elif self.StringIsInt(TempValue): self.NominalBatteryVolts = int(TempValue) + elif type(TempValue) == str and TempValue.lower() == "unknown": + self.NominalBatteryVolts = 24 else: self.LogDebug("Nominal Battery Volts: " + str(self.NominalBatteryVolts)) @@ -303,6 +307,8 @@ def IdentifyController(self): self.NominalFreq = TempValue elif self.StringIsInt(TempValue): self.NominalFreq = int(TempValue) + elif type(TempValue) == str and TempValue.lower() == "unknown": + self.NominalFreq = 60 else: self.LogDebug("Nominal Frequency: " + str(self.NominalFreq)) @@ -316,6 +322,8 @@ def IdentifyController(self): self.NominalRPM = TempValue elif self.StringIsInt(TempValue): self.NominalRPM = int(TempValue) + elif type(TempValue) == str and TempValue.lower() == "unknown": + self.NominalRPM = 3600 # default for genmon else: self.LogDebug("Nominal RPM: " + str(self.NominalRPM))