We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1838371 + 882994c commit b83531aCopy full SHA for b83531a
components/calibration/calibration.c
@@ -72,7 +72,7 @@ esp_err_t calibration_init(calibration_handle_t *handler, size_t count, calibrat
72
handler->type = type;
73
handler->count = count;
74
handler->filled = 0;
75
- handler->points = calloc(sizeof(calibration_point_t), handler->count);
+ handler->points = calloc(handler->count, sizeof(calibration_point_t));
76
if (!handler->points)
77
{
78
ESP_LOGE(TAG, "Could not allocate memory for calibration points");
0 commit comments