vfs: use recommended `esp_cpu_dbgr_is_attached` API

This fixes deprecation warning with earlier API
`cpu_hal_is_debugger_attached`.
pull/9702/head
Mahavir Jain 2022-08-29 22:15:11 +05:30
rodzic 8d9c51f76d
commit 8b8d525a6c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 99324EF4A00734E0
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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;
}