Skip to content

Commit d24d572

Browse files
committed
Fix use of term_from_literal_binary on SMP branch
Signed-off-by: Fred Dushin <[email protected]>
1 parent e0c409c commit d24d572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/esp32/components/avm_builtins/rtc_slow_nif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static term nif_esp_rtc_slow_get_binary(Context *ctx, int argc, term argv[])
6565
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
6666
}
6767

68-
return term_from_literal_binary(rtc_slow_data, rtc_slow_data_size, ctx);
68+
return term_from_literal_binary(rtc_slow_data, rtc_slow_data_size, &ctx->heap, ctx->global);
6969
}
7070

7171
static term nif_esp_rtc_slow_set_binary(Context *ctx, int argc, term argv[])

0 commit comments

Comments
 (0)