@@ -195,6 +195,35 @@ extern "C"
195195
196196#endif /* Undefined VSCP_CONFIG_ENABLE_LOOPBACK */
197197
198+ #ifndef VSCP_CONFIG_ENABLE_SEGMENT_TIME_CALLOUT
199+
200+ /** Enable a time update callout for every received segment master heartbeat,
201+ * in case the event contains a new time since epoch.
202+ */
203+ #define VSCP_CONFIG_ENABLE_SEGMENT_TIME_CALLOUT VSCP_CONFIG_BASE_DISABLED
204+
205+ #endif /* Undefined VSCP_CONFIG_ENABLE_SEGMENT_TIME_CALLOUT */
206+
207+ #if VSCP_CONFIG_BASE_IS_ENABLED ( VSCP_CONFIG_ENABLE_SEGMENT_TIME_CALLOUT )
208+ #if VSCP_CONFIG_BASE_IS_DISABLED ( VSCP_CONFIG_HEARTBEAT_SUPPORT_SEGMENT )
209+ #error If the segment time callout is enabled, the segment heartbeat must be enabled too.
210+ #endif /* VSCP_CONFIG_BASE_IS_DISABLED( VSCP_CONFIG_HEARTBEAT_SUPPORT_SEGMENT ) */
211+ #endif /* VSCP_CONFIG_BASE_IS_ENABLED( VSCP_CONFIG_ENABLE_SEGMENT_TIME_CALLOUT ) */
212+
213+ #ifndef VSCP_CONFIG_PROTOCOL_EVENT_NOTIFICATION
214+
215+ /**
216+ * Usually the core handles all protocol class events and they are not
217+ * forwarded to the application. Enable this to forward the events as well.
218+ * If application handles the event, the core won't handle it.
219+ *
220+ * Attention: Handling events which the core is waiting for can cause bad
221+ * behaviour.
222+ */
223+ #define VSCP_CONFIG_PROTOCOL_EVENT_NOTIFICATION VSCP_CONFIG_BASE_DISABLED
224+
225+ #endif /* Undefined VSCP_CONFIG_PROTOCOL_EVENT_NOTIFICATION */
226+
198227/*******************************************************************************
199228 CONSTANTS
200229*******************************************************************************/
0 commit comments