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 4674d2e + 5a7ec34 commit 804e444Copy full SHA for 804e444
ports/espressif/common-hal/frequencyio/FrequencyIn.c
@@ -117,7 +117,7 @@ void common_hal_frequencyio_frequencyin_construct(frequencyio_frequencyin_obj_t
117
118
self->pin = pin->number;
119
self->capture_period_ms = capture_period_ms;
120
- self->internal_data = heap_caps_malloc(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL, sizeof(_internal_data_t));
+ self->internal_data = heap_caps_malloc(sizeof(_internal_data_t), MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
121
if (self->internal_data == NULL) {
122
raise_esp_error(ESP_ERR_NO_MEM);
123
}
0 commit comments