From 1bde5f3316f4d0e4733b5b4b395a4d341b2392f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20de=20Giessen?= Date: Tue, 31 May 2022 14:55:39 +0200 Subject: [PATCH] esp32/main: Remove unused mbedtls debug function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since commit beeb74 we already check in modussl_mbedtls whether this function is provided by the ESP-IDF before calling it, thus we no longer need to define it here in order to compile. Removing it so that if CONFIG_MBEDTLS_DEBUG is defined we do not cause any 'multiple definition' compile errors. Signed-off-by: Daniƫl van de Giessen --- ports/esp32/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ports/esp32/main.c b/ports/esp32/main.c index b8ba03e513..3a172e6f8d 100644 --- a/ports/esp32/main.c +++ b/ports/esp32/main.c @@ -216,11 +216,6 @@ void nlr_jump_fail(void *val) { esp_restart(); } -// modussl_mbedtls uses this function but it's not enabled in ESP IDF -void mbedtls_debug_set_threshold(int threshold) { - (void)threshold; -} - void *esp_native_code_commit(void *buf, size_t len, void *reloc) { len = (len + 3) & ~3; uint32_t *p = heap_caps_malloc(len, MALLOC_CAP_EXEC);