Skip to content

Commit 804e444

Browse files
authored
Merge pull request #10490 from dhalbert/frequencyio-heap-caps-malloc
espressif/common-hal/frequencyio/FrequencyIn.c: fix heap_caps_malloc() arg order
2 parents 4674d2e + 5a7ec34 commit 804e444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/espressif/common-hal/frequencyio/FrequencyIn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void common_hal_frequencyio_frequencyin_construct(frequencyio_frequencyin_obj_t
117117

118118
self->pin = pin->number;
119119
self->capture_period_ms = capture_period_ms;
120-
self->internal_data = heap_caps_malloc(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL, sizeof(_internal_data_t));
120+
self->internal_data = heap_caps_malloc(sizeof(_internal_data_t), MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
121121
if (self->internal_data == NULL) {
122122
raise_esp_error(ESP_ERR_NO_MEM);
123123
}

0 commit comments

Comments
 (0)