diff --git a/genmonlib/generac_evolution.py b/genmonlib/generac_evolution.py index d6ae2c06..f5f92ef7 100644 --- a/genmonlib/generac_evolution.py +++ b/genmonlib/generac_evolution.py @@ -3632,34 +3632,36 @@ def GetEngineState(self, Reg0001Value=None): # Cranking # Cranking Warning # Cranking Alarm - if self.BitIsEqual(RegVal, 0x000F0000, 0x00040000): + if self.BitIsEqual(RegVal, 0x001F0000, 0x00040000): return "Exercising" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00090000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00090000): return "Stopped" # Note: this appears to define the state where the generator should start, it defines # the initiation of the start delay timer, This only appears in Nexus and Air Cooled Evo - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00010000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00010000): return "Startup Delay Timer Activated" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00020000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00020000): if self.SystemInAlarm(): return "Cranking in Alarm" else: return "Cranking" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00050000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00050000): return "Cooling Down" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00030000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00030000): if self.SystemInAlarm(): return "Running in Alarm" else: return "Running" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00080000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00080000): return "Stopped in Alarm" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00060000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00060000): return "Running in Warning" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x00000000): + elif self.BitIsEqual(RegVal, 0x001F0000, 0x00000000): return "Off - Ready" - elif self.BitIsEqual(RegVal, 0x000F0000, 0x000F0000): # added for Evo 4.5L + elif self.BitIsEqual(RegVal, 0x001F0000, 0x000F0000): # added for Evo 4.5L return "Off - Remote Switch Off" + elif self.BitIsEqual(RegVal, 0x001F0000, 0x001F0000): # added for Evo 4.5L + return "Firmware Update in Progress" else: self.FeedbackPipe.SendFeedback( "Unknown EngineState",