mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
power/battery: add baterr, batinfo, batwarn for debug log
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
c1e2fd9014
commit
1ed4118378
@@ -250,6 +250,24 @@
|
||||
# define pwrinfo _none
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_BATTERY_ERROR
|
||||
# define baterr _err
|
||||
#else
|
||||
# define baterr _none
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_BATTERY_WARN
|
||||
# define batwarn _warn
|
||||
#else
|
||||
# define batwarn _none
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_BATTERY_INFO
|
||||
# define batinfo _info
|
||||
#else
|
||||
# define batinfo _none
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_WIRELESS_ERROR
|
||||
# define wlerr _err
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user