From 28b458577e10c31720d5cbb03429287f61330195 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Tue, 11 Feb 2025 14:47:56 +0100 Subject: [PATCH] b fix test sim build --- server/simulators/test_sim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/simulators/test_sim.cpp b/server/simulators/test_sim.cpp index f7d02de..0b082f0 100644 --- a/server/simulators/test_sim.cpp +++ b/server/simulators/test_sim.cpp @@ -52,11 +52,11 @@ void Test_Sim::button_clicked(UI_button *id) { if (id == &this->m_button) { - bool state = this->m_button.bg_color() == Color(Color::Red) ? true : false; - this->m_button.set_bg_color(state ? Color(Color::Green) : Color(Color::Red)); + bool state = this->m_button.bg_color() == Color::Red ? true : false; + this->m_button.set_bg_color(state ? Color::Green : Color::Red); this->m_button.set_text(state ? "On" : "Off"); - this->m_led.set_bg_color(state ? Color(Color::Green) : Color(Color::Red)); + this->m_led.set_bg_color(state ? Color::Green : Color::Red); return; } }