Fixed compile errors in basic/server/device when BACAPP_TIMESTAMP or Channel object are not enabled. (#1109)

This commit is contained in:
Steve Karg
2025-09-24 11:01:49 -05:00
committed by GitHub
parent d3689aaec0
commit 814eea5fd9
+4
View File
@@ -2300,8 +2300,10 @@ bool Device_Write_Property_Local(BACNET_WRITE_PROPERTY_DATA *wp_data)
status = write_property_type_valid(
wp_data, &value, BACNET_APPLICATION_TAG_TIMESTAMP);
if (status) {
#if defined(BACAPP_TIMESTAMP)
bacapp_timestamp_copy(
&Time_Of_Device_Restart, &value.type.Time_Stamp);
#endif
}
break;
default:
@@ -2762,8 +2764,10 @@ void Device_Init(object_functions_t *object_table)
}
characterstring_init_ansi(&My_Object_Name, Device_Name_Default);
#if (BACNET_PROTOCOL_REVISION >= 14)
#ifdef CONFIG_BACNET_BASIC_OBJECT_CHANNEL
Channel_Write_Property_Internal_Callback_Set(Device_Write_Property);
#endif
#endif
}
bool DeviceGetRRInfo(