mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
boards: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
939b990a9c
commit
83442aa70c
@@ -337,7 +337,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
|
||||
default:
|
||||
{
|
||||
mtrerr("board_foc_trace type=%d not supported!\n", type);
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,7 +327,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
|
||||
default:
|
||||
{
|
||||
mtrerr("board_foc_trace type=%d not supported!\n", type);
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
|
||||
default:
|
||||
{
|
||||
mtrerr("board_foc_trace type=%d not supported!\n", type);
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user