An error occurred while fetching the assigned milestone of the selected merge_request.
1 unresolved thread
device: integrate hardware outputs as output channels
Logic from dss-websrc-mainline:
- /json/device/setValue for all 8-bit outputs channels
- /json/device/setOutputValue with offset 0x02 for 16 bit channels
Activity
mentioned in commit 05d4232f
966 1033 throw std::runtime_error("Bus interface not available"); 967 1034 } // getDeviceOutputChannelValue 968 1035 969 void Device::setDeviceOutputChannelValue(uint8_t _channel, uint8_t _size, 970 uint16_t _value, bool _applyNow) const { 1036 void Device::setDeviceOutputChannelValue(uint8_t channel, uint8_t size, uint16_t value, bool applyNow) const { 971 1037 if (m_pApartment->getDeviceBusInterface() != NULL) { 972 m_pApartment->getDeviceBusInterface()->setDeviceOutputChannelValue(*this, _channel, _size, _value, _applyNow); 1038 if (m_emulatedHardwareOutputs) { 1039 if (channel == 0) { 1040 return setDeviceValue(value); 1041 } else { 1042 return setDeviceOutputValue(channel * 2, value); This works currently because
Device::setDeviceOutputChannelValue
is used wrongly, but will need to be adapted in the context of DSD-1706