d/psmv: Fix build

This commit is contained in:
Jakob Bornecrantz 2019-11-06 19:51:24 +00:00
parent a54cdb2632
commit e7e550fa8d

View file

@ -1413,7 +1413,7 @@ psmv_get_calibration_zcm2(struct psmv_device *psmv)
if (ret != (int)sizeof(part)) {
PSMV_ERROR(psmv, "Size wrong: %i != %i", ret,
(int)sizeof(*part));
(int)sizeof(part));
return -1;
}
@ -1427,7 +1427,7 @@ psmv_get_calibration_zcm2(struct psmv_device *psmv)
dst_offset = sizeof(part);
break;
default:
PSMV_ERROR(psmv, "Unexpected part id! %i", part->which);
PSMV_ERROR(psmv, "Unexpected part id! %i", part.which);
return -1;
}