You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/04 05:36:22 UTC
[incubator-nuttx] 09/13: arch: cxd56xx: Fix compile error when
CONFIG_LIBM is disabled
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 618661df931b50e8f848e9e2f7b5774e74f1f9ca
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:54:28 2021 +0900
arch: cxd56xx: Fix compile error when CONFIG_LIBM is disabled
It is no longer necessary to define CONFIG_ARCH_MATH_H when we would
like to link libm.a other than nuttx math library. So, this commit
removes the error condition.
---
arch/arm/src/cxd56xx/cxd56_charger.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/arm/src/cxd56xx/cxd56_charger.c b/arch/arm/src/cxd56xx/cxd56_charger.c
index 4cb7a07..1bd3970 100644
--- a/arch/arm/src/cxd56xx/cxd56_charger.c
+++ b/arch/arm/src/cxd56xx/cxd56_charger.c
@@ -62,13 +62,8 @@
/* Configuration */
-#undef USE_FLOAT_CONVERSION
-
#ifdef CONFIG_CXD56_CHARGER_TEMP_PRECISE
-#if !defined(CONFIG_LIBM) && !defined(CONFIG_ARCH_MATH_H)
-# error Temperature conversion in float requires math library.
-#endif
-#define USE_FLOAT_CONVERSION 1
+# define USE_FLOAT_CONVERSION
#endif
/****************************************************************************