mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-31 15:05:46 +03:00
examples/contiki/server.c: Define clock_offset locally
The global variable clock_offset has been removed from libcoap, so we have to define our own.
This commit is contained in:
1 parent
f1b36046f2
commit
d55bd85e14
1 file changed
+2
@@ -40,6 +40,7 @@
|
||||
|
||||
static coap_context_t *coap_context;
|
||||
|
||||
static clock_time_t clock_offset;
|
||||
/* changeable clock base (see handle_put_time()) */
|
||||
static clock_time_t my_clock_base = 0;
|
||||
static coap_resource_t *time_resource = NULL; /* just for testing */
|
||||
@@ -193,6 +194,7 @@ PROCESS_THREAD(coap_server_process, ev, data)
|
||||
{
|
||||
PROCESS_BEGIN();
|
||||
|
||||
clock_offset = clock_time();
|
||||
init_coap_server(&coap_context);
|
||||
|
||||
if (!coap_context) {
|
||||
|
||||
Reference in new issue
Block a user