From f35c5f1a4ce84cf82558b7e72e9b79c3630dbfe5 Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Sun, 12 May 2024 08:47:28 +0200 Subject: [PATCH] Define clock sync functions for standalone RTI --- core/federated/RTI/rti_remote.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/federated/RTI/rti_remote.c b/core/federated/RTI/rti_remote.c index e8fd3dba9..824bb824e 100644 --- a/core/federated/RTI/rti_remote.c +++ b/core/federated/RTI/rti_remote.c @@ -1727,6 +1727,12 @@ void initialize_RTI(rti_remote_t* rti) { rti_remote->stop_in_progress = false; } +// The RTI includes clock.c, which requires the following functions that are defined +// in clock-sync.c. But clock-sync.c is not included in the standalone RTI. +// Provide empty implementations of these functions. +void clock_sync_add_offset(instant_t* t) { (void)t; } +void clock_sync_subtract_offset(instant_t* t) { (void)t; } + void free_scheduling_nodes(scheduling_node_t** scheduling_nodes, uint16_t number_of_scheduling_nodes) { for (uint16_t i = 0; i < number_of_scheduling_nodes; i++) { // FIXME: Gives error freeing memory not allocated!!!!