summaryrefslogtreecommitdiff
path: root/protocols/weather/weather_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/weather/weather_data.c')
-rw-r--r--protocols/weather/weather_data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/weather/weather_data.c b/protocols/weather/weather_data.c
index 52c681fb6b..86f051199f 100644
--- a/protocols/weather/weather_data.c
+++ b/protocols/weather/weather_data.c
@@ -277,6 +277,13 @@ void ConvertDataValue(WIDATAITEM *UpdateData, char *Data)
GetDist(Data, UpdateData->Unit, str);
strcpy(Data, str);
}
+ // elevation
+ else if (!strcmp(UpdateData->Name, "Elevation") || !_stricmp(UpdateData->Unit, "FT") ||
+ !_stricmp(UpdateData->Unit, "M"))
+ {
+ GetElev(Data, UpdateData->Unit, str);
+ strcpy(Data, str);
+ }
// converting case for condition to the upper+lower format
else if (!_stricmp(UpdateData->Unit, "COND"))
CaseConv(Data);