From 9f40e414212e134ec70157db65e28f880200841d Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Mon, 29 Aug 2022 22:15:11 +0530 Subject: [PATCH] vfs: use recommended `esp_cpu_dbgr_is_attached` API This fixes deprecation warning with earlier API `cpu_hal_is_debugger_attached`. --- components/vfs/vfs_semihost.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/vfs/vfs_semihost.c b/components/vfs/vfs_semihost.c index de86e8a2f4..b61397ff6e 100644 --- a/components/vfs/vfs_semihost.c +++ b/components/vfs/vfs_semihost.c @@ -310,7 +310,7 @@ static int vfs_semihost_unlink(void* ctx, const char *restrict path) static DIR* vfs_semihost_opendir(void* ctx, const char *restrict path) { - if (!cpu_hal_is_debugger_attached()) { + if (!esp_cpu_dbgr_is_attached()) { return NULL; } @@ -391,7 +391,7 @@ static int vfs_semihost_readdir_r(void* ctx, DIR* dirp, struct dirent* entry, st static struct dirent* vfs_semihost_readdir(void* ctx, DIR* dirp) { - if (!cpu_hal_is_debugger_attached()) { + if (!esp_cpu_dbgr_is_attached()) { return NULL; } @@ -408,7 +408,7 @@ static struct dirent* vfs_semihost_readdir(void* ctx, DIR* dirp) static void vfs_semihost_seekdir(void* ctx, DIR* pdir, long offset) { - if (!cpu_hal_is_debugger_attached()) { + if (!esp_cpu_dbgr_is_attached()) { return; }