From 2426dd667a760aa305b45ddab1a1fb6fb55c2baf Mon Sep 17 00:00:00 2001 From: Stephen Jefferson Date: Fri, 26 Apr 2024 18:10:39 +0100 Subject: [PATCH] Incorrect default wind direction value --- enviro/config_defaults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enviro/config_defaults.py b/enviro/config_defaults.py index 29f26c9..8a369bc 100644 --- a/enviro/config_defaults.py +++ b/enviro/config_defaults.py @@ -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: @@ -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")