fix(color): simulator may crash or freeze when RF module is set to MPM (#6954)

This commit is contained in:
philmoz
2026-01-06 09:43:30 +10:00
committed by GitHub
parent a9f86dc001
commit fd39dc128c
3 changed files with 9 additions and 5 deletions
+2
View File
@@ -31,10 +31,12 @@
typedef const char* STR_TYP;
#define STR_DEF(x) x
#define STR_VAL(x) x
#define STR_SAFE_VAL(x) x
#else
typedef const char* (*STR_TYP)();
#define STR_DEF(x) x##_FN
#define STR_VAL(x) x()
#define STR_SAFE_VAL(x) (x ? x() : nullptr)
#endif
#if !defined(M_PI)