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:
skarg
2005-06-25 12:40:39 +00:00
parent 9e154c773e
commit 74a833fd05
+6
View File
@@ -285,6 +285,7 @@ bool Analog_Output_Write_Property(
{
priority = wp_data->priority;
if (priority && (priority <= BACNET_MAX_PRIORITIES) &&
(priority != 6 /* reserved */) &&
(wp_data->value.type.Real >= 0.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)
status = true;
}
else if (priority == 6)
{
*error_class = ERROR_CLASS_PROPERTY;
*error_code = ERROR_CODE_WRITE_ACCESS_DENIED;
}
else
{
*error_class = ERROR_CLASS_PROPERTY;