feat: update DaliDomainService to support logarithmic brightness control and enhance KNX broadcast management request handling
Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
@@ -170,7 +170,8 @@ class DaliDomainService {
|
||||
int freecolour = 255, int rgbwaf_control = -1) const;
|
||||
bool storeDt8PowerOnLevelSnapshot(uint8_t gateway_id, int short_address, int level) const;
|
||||
bool storeDt8SystemFailureLevelSnapshot(uint8_t gateway_id, int short_address, int level) const;
|
||||
bool setBright(uint8_t gateway_id, int short_address, int brightness) const;
|
||||
bool setBright(uint8_t gateway_id, int short_address, int brightness,
|
||||
bool logarithmic_curve = false) const;
|
||||
bool setColTempRaw(uint8_t gateway_id, int short_address, int mirek) const;
|
||||
bool setColTemp(uint8_t gateway_id, int short_address, int kelvin) const;
|
||||
bool setColourRaw(uint8_t gateway_id, int raw_addr, int x, int y) const;
|
||||
|
||||
@@ -1404,13 +1404,14 @@ bool DaliDomainService::storeDt8SystemFailureLevelSnapshot(uint8_t gateway_id,
|
||||
return channel->dali->dt8.storeSystemFailureLevelSnapshot(short_address, level);
|
||||
}
|
||||
|
||||
bool DaliDomainService::setBright(uint8_t gateway_id, int short_address, int brightness) const {
|
||||
bool DaliDomainService::setBright(uint8_t gateway_id, int short_address, int brightness,
|
||||
bool logarithmic_curve) const {
|
||||
const auto* channel = findChannelByGateway(gateway_id);
|
||||
if (channel == nullptr || channel->dali == nullptr) {
|
||||
return false;
|
||||
}
|
||||
markBusActivity(gateway_id);
|
||||
return channel->dali->base.setBright(short_address, brightness);
|
||||
return channel->dali->base.setBright(short_address, brightness, logarithmic_curve);
|
||||
}
|
||||
|
||||
bool DaliDomainService::setColTempRaw(uint8_t gateway_id, int short_address, int mirek) const {
|
||||
|
||||
Reference in New Issue
Block a user