CONFIGURATION!

This commit is contained in:
2026-08-05 18:25:17 +02:00
parent 770c7ca631
commit ffaf8f258e
155 changed files with 28575 additions and 19 deletions
+3 -3
View File
@@ -39,10 +39,10 @@ draw::color_t interpolateColor(double value,
return stops.back().color;
}
#ifdef METRIC
#ifdef CONFIG_METRIC
draw::color_t get_altitude_color(uint32_t value) {
static constexpr std::array<color_stop, 11> stops = {{
#ifdef METRIC
#ifdef CONFIG_METRIC
{0, {220, 90, 20}},
{150, {245, 115, 25}},
{300, {250, 150, 30}},
@@ -55,7 +55,7 @@ draw::color_t get_altitude_color(uint32_t value) {
{9000, {50, 110, 240}},
{12000, {140, 50, 220}}
#endif
#ifndef METRIC
#ifndef CONFIG_METRIC
{0, {220, 90, 20}}, // Brown/Dark Orange
{500, {245, 115, 25}}, // Orange
{1000, {250, 150, 30}}, // Light Orange