Added error message when priority 6 is written to since that priority is reserved for minimum on/off time, per the BTL Implementors Guide.
This commit is contained in:
@@ -285,6 +285,7 @@ bool Analog_Output_Write_Property(
|
|||||||
{
|
{
|
||||||
priority = wp_data->priority;
|
priority = wp_data->priority;
|
||||||
if (priority && (priority <= BACNET_MAX_PRIORITIES) &&
|
if (priority && (priority <= BACNET_MAX_PRIORITIES) &&
|
||||||
|
(priority != 6 /* reserved */) &&
|
||||||
(wp_data->value.type.Real >= 0.0) &&
|
(wp_data->value.type.Real >= 0.0) &&
|
||||||
(wp_data->value.type.Real <= 100.0))
|
(wp_data->value.type.Real <= 100.0))
|
||||||
{
|
{
|
||||||
@@ -298,6 +299,11 @@ bool Analog_Output_Write_Property(
|
|||||||
// main loop (i.e. check out of service before changing output)
|
// main loop (i.e. check out of service before changing output)
|
||||||
status = true;
|
status = true;
|
||||||
}
|
}
|
||||||
|
else if (priority == 6)
|
||||||
|
{
|
||||||
|
*error_class = ERROR_CLASS_PROPERTY;
|
||||||
|
*error_code = ERROR_CODE_WRITE_ACCESS_DENIED;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*error_class = ERROR_CLASS_PROPERTY;
|
*error_class = ERROR_CLASS_PROPERTY;
|
||||||
|
|||||||
Reference in New Issue
Block a user