1
0
Fork 0

fix off-by-one error

This commit is contained in:
Kevin Matz 2022-12-06 18:04:37 -05:00
parent f496b89e44
commit 7434ac3d91
1 changed files with 2 additions and 2 deletions

View File

@ -244,8 +244,8 @@ void Universe::setValue (const uint16_t start, const uint16_t footprint,
return;
// set active_data_slots to at least end of footprint
if (start + footprint >= active_data_slots_)
active_data_slots_ = start + footprint + 1; // + start code
if (start + footprint > active_data_slots_)
active_data_slots_ = start + footprint;
// get a copy of the current values
uint8_t og[footprint];