Fixed Lighting Output Relinquish values. (#1094)
* Fixed Lighting Output Relinquish values. * Added lighting command refresh from tracking value API.
This commit is contained in:
@@ -592,6 +592,21 @@ void lighting_command_override(
|
||||
lighting_command_tracking_value_event(data, old_value, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Refreshes the current lighting command at the tracking value
|
||||
* @param data [in] dimmer data
|
||||
*/
|
||||
void lighting_command_refresh(struct bacnet_lighting_command_data *data)
|
||||
{
|
||||
float value;
|
||||
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
value = data->Tracking_Value;
|
||||
lighting_command_tracking_value_event(data, value, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Updates the dimmer tracking value per ramp or fade or step
|
||||
* @param data [in] dimmer data
|
||||
|
||||
@@ -136,6 +136,8 @@ BACNET_STACK_EXPORT
|
||||
float lighting_command_normalized_on_range_clamp(
|
||||
struct bacnet_lighting_command_data *data, float value);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
void lighting_command_refresh(struct bacnet_lighting_command_data *data);
|
||||
BACNET_STACK_EXPORT
|
||||
void lighting_command_init(struct bacnet_lighting_command_data *data);
|
||||
BACNET_STACK_EXPORT
|
||||
|
||||
Reference in New Issue
Block a user