瀏覽代碼

Merge branch 'bugfix/vfs_build_warning' into 'master'

vfs: use recommended `esp_cpu_dbgr_is_attached` API

See merge request espressif/esp-idf!19843
Ivan Grokhotkov 3 年之前
父節點
當前提交
b7efde18c6
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      components/vfs/vfs_semihost.c

+ 3 - 3
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;
     }