Added more functionality to the ATmega168 demo.
This commit is contained in:
@@ -183,11 +183,6 @@ bool Analog_Value_Write_Property(
|
||||
object_index =
|
||||
Analog_Value_Instance_To_Index(wp_data->object_instance);
|
||||
AV_Present_Value[object_index] = value.type.Real;
|
||||
if ((AV_Present_Value[0] < 1.0) && (AV_Present_Value[0] > -1.0)) {
|
||||
LED_GREEN_OFF();
|
||||
} else {
|
||||
LED_GREEN_ON();
|
||||
}
|
||||
status = true;
|
||||
} else {
|
||||
*error_class = ERROR_CLASS_PROPERTY;
|
||||
@@ -221,7 +216,6 @@ void testAnalog_Value(
|
||||
BACNET_ERROR_CLASS error_class;
|
||||
BACNET_ERROR_CODE error_code;
|
||||
|
||||
|
||||
len =
|
||||
Analog_Value_Encode_Property_APDU(&apdu[0], instance,
|
||||
PROP_OBJECT_IDENTIFIER, BACNET_ARRAY_ALL, &error_class, &error_code);
|
||||
|
||||
Reference in New Issue
Block a user