Skip to content

Commit c6bac7b

Browse files
committed
Switch of inline variables by default in AudioConfig.h
1 parent 42c99e5 commit c6bac7b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/AudioConfig.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,10 @@
5050
# define CHECK_MEMORY()
5151
#endif
5252

53-
// Change USE_INLINE_VARS to 0 if inline variables are not supported
54-
#define USE_INLINE_VARS 1
55-
#if USE_INLINE_VARS && !defined(INGNORE_INLINE_VARS)
56-
# define INLINE_VAR inline
57-
#else
58-
# define INLINE_VAR
53+
// Change USE_INLINE_VARS to 1 if inline variables are supported
54+
#ifndef USE_INLINE_VARS
55+
# define USE_INLINE_VARS 0
5956
#endif
60-
6157
/**
6258
* -------------------------------------------------------------------------
6359
* @brief Common Default Settings that can usually be changed in the API
@@ -470,3 +466,8 @@ typedef uint32_t eps32_i2s_sample_rate_type;
470466
#define USE_URL_ARDUINO
471467
#endif
472468

469+
#if USE_INLINE_VARS && !defined(INGNORE_INLINE_VARS)
470+
# define INLINE_VAR inline
471+
#else
472+
# define INLINE_VAR
473+
#endif

0 commit comments

Comments
 (0)