any optimization of separate handling is overshadowed by duplicating the code
This commit is contained in:
parent
ed40a3b666
commit
f9f0d1298e
|
@ -201,18 +201,7 @@ std::shared_ptr<void> Universe::onStatusChange(const std::function<void(Universe
|
|||
*/
|
||||
void Universe::setValue(const uint16_t address, const uint8_t value)
|
||||
{
|
||||
if (address == 0)
|
||||
return;
|
||||
if (address > null_start_data.size() - 1)
|
||||
return;
|
||||
|
||||
null_start_mutex.lock();
|
||||
null_start_data[address] = value;
|
||||
null_start_mutex.unlock();
|
||||
|
||||
setStatus(DMX_ACTIVE);
|
||||
last_updated_ = std::chrono::system_clock::now();
|
||||
doDataCallbacks();
|
||||
setValue(address, 1, &value);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue