diff --git a/src/modules/src/crtp_localization_service.c b/src/modules/src/crtp_localization_service.c index 0f74d49704..8fbde6bc62 100644 --- a/src/modules/src/crtp_localization_service.c +++ b/src/modules/src/crtp_localization_service.c @@ -115,7 +115,7 @@ static void locSrvCrtpCB(CRTPPacket* pk) static void extPositionHandler(CRTPPacket* pk) { - const struct CrtpExtPosition* data = (const struct CrtpExtPosition*)pk; + const struct CrtpExtPosition* data = (const struct CrtpExtPosition*)pk->data; ext_pos.x = data->x; ext_pos.y = data->y;