Skip to content

Commit

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

return self.variation

Expand Down

0 comments on commit f2fef76

Please sign in to comment.