chore: fix index out of bounds
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
Andre Henriques 2023-07-10 21:10:34 +01:00
parent 94d716ef9c
commit d8716ce8bc

View File

@ -168,7 +168,7 @@ impl Render {
local_led_config.push(LocalLedConfiguration { tag, start, end });
}
self.num_leds = current_pos;
self.num_leds = current_pos + 1;
println!(
"Loaded: {} leds, with config: {:?}",
self.num_leds, local_led_config