Skip to content

Commit

Permalink
Incorrect default wind direction value
Browse files Browse the repository at this point in the history
  • Loading branch information
sjefferson99 authored Apr 26, 2024
1 parent cea98d6 commit 2426dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enviro/config_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from phew import logging

DEFAULT_USB_POWER_TEMPERATURE_OFFSET = 4.5

DEFAULT_WIND_DIRECTION_OFFSET = 0

def add_missing_config_settings():
try:
Expand All @@ -22,7 +22,7 @@ def add_missing_config_settings():
config.wind_direction_offset
except AttributeError:
warn_missing_config_setting("wind_direction_offset")
config.wind_direction_offset = DEFAULT_USB_POWER_TEMPERATURE_OFFSET
config.wind_direction_offset = DEFAULT_WIND_DIRECTION_OFFSET

def warn_missing_config_setting(setting):
logging.warn(f"> config setting '{setting}' missing, please add it to config.py")

0 comments on commit 2426dd6

Please sign in to comment.