From 251b9db1352945ee6210b800b08172f473664ffc Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Tue, 15 Oct 2024 17:09:19 +0300 Subject: [PATCH] Update esphome/components/lps22/lps22.cpp Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/lps22/lps22.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/lps22/lps22.cpp b/esphome/components/lps22/lps22.cpp index 46991bb453..8624b0435d 100644 --- a/esphome/components/lps22/lps22.cpp +++ b/esphome/components/lps22/lps22.cpp @@ -18,8 +18,8 @@ static constexpr uint8_t PRES_OUT_XL = 0x28; static constexpr uint8_t REF_P_XL = 0x28; static constexpr uint8_t READ_ATTEMPTS = 10; static constexpr uint8_t READ_INTERVAL = 5; -static constexpr float PRESSURE_SCALE = 1. / 4096.; -static constexpr float TEMPERATURE_SCALE = 0.01; +static constexpr float PRESSURE_SCALE = 1.0f / 4096.0f; +static constexpr float TEMPERATURE_SCALE = 0.01f; void LPS22Component::setup() {}