Call LED::Step() correctly

pull/37/head
Yuri D'Elia 2021-06-27 14:35:49 +02:00 committed by DRracer
parent 9122a33693
commit ab01413116
1 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ void setup() {
shr16::shr16.Init();
ml::leds.SetMode(4, ml::Color::green, ml::Mode::blink0);
ml::leds.Step(0);
ml::leds.Step();
// @@TODO if the shift register doesn't work we really can't signalize anything, only internal variables will be accessible if the UART works
@ -116,7 +116,7 @@ void setup() {
};
hu::usart1.Init(&usart_conf);
ml::leds.SetMode(3, ml::Color::green, ml::Mode::on);
ml::leds.Step(0);
ml::leds.Step();
// @@TODO if both shift register and the UART are dead, we are sitting ducks :(
@ -131,15 +131,15 @@ void setup() {
};
spi::Init(SPI0, &spi_conf);
ml::leds.SetMode(2, ml::Color::green, ml::Mode::on);
ml::leds.Step(0);
ml::leds.Step();
// tmc::Init()
ml::leds.SetMode(1, ml::Color::green, ml::Mode::on);
ml::leds.Step(0);
ml::leds.Step();
// adc::Init();
ml::leds.SetMode(0, ml::Color::green, ml::Mode::on);
ml::leds.Step(0);
ml::leds.Step();
}
void SendMessage(const mp::ResponseMsg &msg) {