1
0
Fork 0

copy instead of iterate

This commit is contained in:
Kevin Matz 2021-09-01 12:35:40 -04:00
parent 3aa1142ade
commit 958083f6a3
1 changed files with 1 additions and 2 deletions

View File

@ -172,8 +172,7 @@ void Universe::setValue(const uint16_t start, const uint16_t footprint,
return;
null_start_mutex.lock();
for (int i = 0; i < footprint; i++)
null_start_data[start + i] = profile[i];
std::copy(data, data + footprint, null_start_data.begin() + start);
null_start_mutex.unlock();
}