File tree Expand file tree Collapse file tree 4 files changed +9
-109
lines changed
samples/profiles/b-ls/src Expand file tree Collapse file tree 4 files changed +9
-109
lines changed Original file line number Diff line number Diff line change @@ -239,10 +239,13 @@ set(BACNETSTACK_SRCS
239239 ${BACNETSTACK_SRC} /bacnet/basic/services.h
240240 ${BACNETSTACK_SRC} /bacnet/basic/sys/bigend.c
241241 ${BACNETSTACK_SRC} /bacnet/basic/sys/bigend.h
242+ ${BACNETSTACK_SRC} /bacnet/basic/sys/datetime_mstimer.c
242243 ${BACNETSTACK_SRC} /bacnet/basic/sys/days.c
243244 ${BACNETSTACK_SRC} /bacnet/basic/sys/days.h
244245 ${BACNETSTACK_SRC} /bacnet/basic/sys/debug.c
245246 ${BACNETSTACK_SRC} /bacnet/basic/sys/debug.h
247+ ${BACNETSTACK_SRC} /bacnet/basic/sys/dst.c
248+ ${BACNETSTACK_SRC} /bacnet/basic/sys/dst.h
246249 ${BACNETSTACK_SRC} /bacnet/basic/sys/fifo.c
247250 ${BACNETSTACK_SRC} /bacnet/basic/sys/fifo.h
248251 ${BACNETSTACK_SRC} /bacnet/basic/sys/filename.c
Original file line number Diff line number Diff line change @@ -145,7 +145,12 @@ static void BACnet_Lighting_Device_Init_Handler(void *context)
145145 apdu_set_unconfirmed_handler (
146146 SERVICE_UNCONFIRMED_WRITE_GROUP , handler_write_group );
147147 /* initialize timesync callback function. */
148- handler_timesync_set_callback_set (& datetime_timesync );
148+ /* local time and date */
149+ apdu_set_unconfirmed_handler (
150+ SERVICE_UNCONFIRMED_TIME_SYNCHRONIZATION ,
151+ handler_timesync );
152+ handler_timesync_set_callback_set (datetime_timesync );
153+ datetime_init ();
149154 /* done */
150155 LOG_INF ("BACnet Device ID: %u" , Device_Object_Instance_Number ());
151156 /* set the BACnet Basic Task device object timer for lighting output use */
Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: Apache-2.0
33
44zephyr_sources(
5- bacnet_datetime.c
65 bacnet_log.c
76 bacnet_mstimer.c
87 )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments