Skip to content

Commit

Permalink
fix: #22
Browse files Browse the repository at this point in the history
  • Loading branch information
kd committed Apr 27, 2024
1 parent 61d8949 commit 686115b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sail_Instrument/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ def mag_variation(self, lat, lon):
if time.monotonic() - self.variation_time > self.variation_period:
self.variation = self.variation_model.GeoMag(lat, lon).dec
self.variation_time = time.monotonic()
try:
self.variation
except Exception as x:
self.variation=0

return self.variation

def manual_wind(self):
Expand Down

0 comments on commit 686115b

Please sign in to comment.