From 05a9e858946b17822e4d42223de403a777c99770 Mon Sep 17 00:00:00 2001 From: timonburkard <54314495+timonburkard@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:43:41 +0100 Subject: [PATCH] [fix] vendor/st/nucleo-wl55jc: unit of barometric pressure should be in hPa (#847) Co-authored-by: Jaime Trinidad <81958808+Jaime-Trinidad@users.noreply.github.com> --- vendor/stmicroelectronics/nucleo-wl55jc-codec.yaml | 2 +- vendor/stmicroelectronics/nucleo-wl55jc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/stmicroelectronics/nucleo-wl55jc-codec.yaml b/vendor/stmicroelectronics/nucleo-wl55jc-codec.yaml index 6469e3c277..667d5b571d 100644 --- a/vendor/stmicroelectronics/nucleo-wl55jc-codec.yaml +++ b/vendor/stmicroelectronics/nucleo-wl55jc-codec.yaml @@ -20,7 +20,7 @@ uplinkDecoder: value: 'ON' pressure: displayName: Barometric pressure - unit: Pa + unit: hPa value: 1000.0 temperature: displayName: Internal temperature diff --git a/vendor/stmicroelectronics/nucleo-wl55jc.js b/vendor/stmicroelectronics/nucleo-wl55jc.js index cf7a36cd33..f1fa0e8e9f 100644 --- a/vendor/stmicroelectronics/nucleo-wl55jc.js +++ b/vendor/stmicroelectronics/nucleo-wl55jc.js @@ -18,7 +18,7 @@ function decodeUplink(input) { }; data.pressure = { displayName: 'Barometric pressure', - unit: 'Pa', + unit: 'hPa', value: ((input.bytes[1] << 8) + input.bytes[2]) / 10 }; data.temperature = {