Moved timesync offset get/set from handler to ports to fix projects not using handler (#699)

This commit is contained in:
Steve Karg
2024-07-16 17:30:38 -05:00
committed by GitHub
parent 13debf3ead
commit 734321a974
3 changed files with 29 additions and 39 deletions
-12
View File
@@ -69,18 +69,6 @@ static void show_bacnet_date_time(BACNET_DATE *bdate, BACNET_TIME *btime)
/* Callback for timesync set */
static handler_timesync_set_callback_t handler_timesync_set_callback;
static int32_t Time_Offset; /* Time offset in ms */
int32_t handler_timesync_offset(void)
{
return Time_Offset;
}
void handler_timesync_offset_set(int32_t offset)
{
Time_Offset = offset;
}
void handler_timesync(
uint8_t *service_request, uint16_t service_len, BACNET_ADDRESS *src)
{
-4
View File
@@ -48,10 +48,6 @@ typedef void (*handler_timesync_set_callback_t)(
extern "C" {
#endif /* __cplusplus */
BACNET_STACK_EXPORT
int32_t handler_timesync_offset(void);
BACNET_STACK_EXPORT
void handler_timesync_offset_set(int32_t offset);
/* time synchronization handlers */
BACNET_STACK_EXPORT
void handler_timesync(