1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 13:09:49 +04:00

Fix? I have no way to check if sensor still works

This commit is contained in:
MX
2023-06-08 01:03:07 +03:00
parent 47734f2459
commit ffda6ad321

View File

@@ -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;
}