Skip to content

Commit

Permalink
V1.19.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Aug 21, 2024
1 parent 757f3cb commit bd65a8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion genmonlib/generac_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,10 +1676,18 @@ def AltSetGeneratorExerciseTime(self, CmdString):
# ---------- Evolution:SetGeneratorExerciseTime-----------------------------
def SetGeneratorExerciseTime(self, CmdString):

if not self.bUseLegacyWrite and self.EvolutionController and not self.Evolution2:
# set legacy write for Evo1 with Firmware lower than V1.10
FWVersion = self.GetFirmwareVersion()
self.LogDebug("Check Legacy Write: %s" % FWVersion)
if len(FWVersion) and (self.VersionTuple(FWVersion) < (1, 10)):
self.LogDebug("Firmware version %s, setting legacy write" % FWVersion)
self.bUseLegacyWrite = True

# use older style write to set exercise time if this flag is set
if self.bUseLegacyWrite:
return self.AltSetGeneratorExerciseTime(CmdString)

# extract time of day and day of week from command string
# format is day:hour:min Monday:15:00
msgbody = "Invalid command syntax for command setexercise"
Expand Down

0 comments on commit bd65a8a

Please sign in to comment.