Skip to content

Commit f8705c9

Browse files
committed
Merge pull request atomvm#588 from fadushin/rtc-slow-smp-fix
Fix use of term_from_literal_binary on SMP branch These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents e0c409c + d24d572 commit f8705c9

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)