Moved timesync offset get/set from handler to ports to fix projects not using handler (#699)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user