From ffda6ad32102b27e493cf0d49e434997f11938a7 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 8 Jun 2023 01:03:07 +0300 Subject: [PATCH] Fix? I have no way to check if sensor still works --- applications/external/unitemp/sensors/SCD30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/external/unitemp/sensors/SCD30.c b/applications/external/unitemp/sensors/SCD30.c index b5f15b50d..627130da7 100644 --- a/applications/external/unitemp/sensors/SCD30.c +++ b/applications/external/unitemp/sensors/SCD30.c @@ -263,7 +263,7 @@ static bool loadFloat(uint8_t* buff, float* val) { buff += 3; } uint32_t tmpVal = load32_be(floatBuff); - *val = *(float*)&tmpVal; + memcpy(val, &tmpVal, sizeof(float)); return true; }