Call LED::Step() correctly

pull/32/head
Yuri D'Elia 2021-06-27 14:35:49 +02:00
parent 4d6d6fe0af
commit 5477b1e8e5
1 changed files with 5 additions and 5 deletions

View File

@ -103,7 +103,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
@ -114,7 +114,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 :(
@ -129,15 +129,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) {