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:
@@ -263,7 +263,7 @@ static bool loadFloat(uint8_t* buff, float* val) {
|
|||||||
buff += 3;
|
buff += 3;
|
||||||
}
|
}
|
||||||
uint32_t tmpVal = load32_be(floatBuff);
|
uint32_t tmpVal = load32_be(floatBuff);
|
||||||
*val = *(float*)&tmpVal;
|
memcpy(val, &tmpVal, sizeof(float));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user