From d66ac9e4a6650b1c89fa327f124b81328db6f200 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Thu, 14 Jan 2021 12:26:12 +0100 Subject: [PATCH] bugfix --- mission/devices/GyroL3GD20Handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mission/devices/GyroL3GD20Handler.cpp b/mission/devices/GyroL3GD20Handler.cpp index f1aa6d53..28cbdbed 100644 --- a/mission/devices/GyroL3GD20Handler.cpp +++ b/mission/devices/GyroL3GD20Handler.cpp @@ -173,7 +173,7 @@ ReturnValue_t GyroHandler::interpretDeviceReply(DeviceCommandId_t id, float temperature = 25.0 + temperaturOffset; PoolReadHelper readSet(&dataset); - if(result == HasReturnvaluesIF::RETURN_OK) { + if(readSet.getReadResult() == HasReturnvaluesIF::RETURN_OK) { dataset.angVelocX = angVelocX; dataset.angVelocY = angVelocY; dataset.angVelocZ = angVelocZ;