Skip to content

Commit

Permalink
V1.19.01
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Feb 14, 2024
1 parent 015eff1 commit 6b6770d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions genmonlib/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ def FuelLogger(self):

FuelValue = self.GetFuelLevel(ReturnFloat=True)

if FuelValue == None:
if self.WaitForExit("FuelLogger", self.FuelLogFrequency * 60.0):
return
continue
if FuelValue == LastFuelValue:
continue

Expand Down Expand Up @@ -2517,6 +2521,8 @@ def GetFuelLevel(self, ReturnFloat=False):
FuelLevel = float(FuelInTank) / float(self.TankSize) * 100
else:
FuelLevel = 0
if FuelLevel == None:
return FuelLevel
if ReturnFloat:
return float(FuelLevel)
else:
Expand Down

0 comments on commit 6b6770d

Please sign in to comment.