POPUP_WARNING(...) is back on colorlcd (without breaking X7)

This commit is contained in:
Bertrand Songis
2020-03-17 16:49:24 +01:00
parent 37b737fd7c
commit 17d7a45934
@@ -54,6 +54,7 @@ inline int divRoundClosest(const int n, const int d)
return ((n < 0) ^ (d < 0)) ? ((n - d/2)/d) : ((n + d/2)/d);
}
// TODO duplicated code
inline std::string TEXT_AT_INDEX(const char * val, uint8_t idx)
{
const char * start = val + 1 + idx * val[0];