fix off-by-one error
This commit is contained in:
parent
f496b89e44
commit
7434ac3d91
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue