Fixed return state of wifi operator init function

This commit is contained in:
Ulysse Cura 2026-02-06 21:32:45 +01:00
parent 77eae511b2
commit da2f634634
3 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/* *\
Copyrights 2025
Riombotique
\* */
//
// Copyrights 2025
// Poivron Robotique
//
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* Code du RPI Pico principale gérant les differentes entrées-sorties. *

View File

@ -36,7 +36,7 @@ void robot_init(void)
robot.is_running = false;
// Initialisation ended
for(uint i = 0, led_state = true; i < 5; i++)
for(uint8_t i = 0, led_state = true; i < 5; i++)
{
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, led_state);
@ -44,6 +44,7 @@ void robot_init(void)
led_state = !led_state;
}
printf("robot.is_running : %d\n", robot.is_running);
}
static inline void update_time(void)

View File

@ -46,4 +46,6 @@ int wifi_operator_init(void)
}
puts("STA mode activated");
return 0;
}