chore: fix index out of bounds
This commit is contained in:
parent
94d716ef9c
commit
d8716ce8bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user