Afficher l'equipe lors du demarage

This commit is contained in:
Ulysse Cura 2025-02-01 06:04:51 +01:00
parent 05937b1738
commit 864f0128f1
1 changed files with 3 additions and 2 deletions

5
IO.hpp
View File

@ -90,8 +90,7 @@ class IO {
{
static unsigned long last_color_change_time {0};
static bool has_color_changed {true};
bool is_color_blue = (digitalRead(PIN_BUTTON_COLOR) == HIGH);
static bool is_color_blue {true};
if(m_is_color_blue != is_color_blue)
{
@ -125,6 +124,8 @@ class IO {
m_is_tirette_pulled = (digitalRead(PIN_TIRETTE) == HIGH);
m_is_color_blue = is_color_blue;
is_color_blue = (digitalRead(PIN_BUTTON_COLOR) == HIGH);
if(m_is_motor_control_activated)
{
m_updateMotorsControl();