Skip to content

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrofta committed Feb 27, 2021
1 parent cc6c2f0 commit 1a38ca3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openweather.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function convertUnits(units, value) {
} else if ( units === 'm' ) {
skUnits = "m"
}
return { value, units: skUnits }
return { value: value, units: skUnits }
}

function onElevationUpdate(value) {
Expand All @@ -266,7 +266,7 @@ function onElevationUpdate(value) {
log("Cannot add null value as elevation - using 0 instead");
latest.altitude.elevation = 0
}
else
else if (value!=="waiting ...")
{
latest.altitude.elevation = value
log("Elevation set to "+value+"m above sea level");
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openweather-signalk",
"version": "0.3.0",
"version": "0.3.1",
"description": "SignalK plugin to provide data from OpenWeather Service",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1a38ca3

Please sign in to comment.