Merge branch 'contiki'
This commit is contained in:
commit
b708fac68d
76 changed files with 2765 additions and 397 deletions
|
@ -65,7 +65,7 @@
|
|||
/*---------------------------------------------------------------------------*/
|
||||
#define DEBUG 0
|
||||
#if DEBUG
|
||||
#define PRINTF(...) PRINTF(__VA_ARGS__)
|
||||
#define PRINTF(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
#define PRINTF(...)
|
||||
#endif
|
||||
|
|
|
@ -113,6 +113,14 @@ rest_activate_resource(resource_t *resource, char *path)
|
|||
PRINTF("Periodic resource: %p (%s)\n", resource->periodic,
|
||||
resource->periodic->resource->url);
|
||||
list_add(restful_periodic_services, resource->periodic);
|
||||
if(process_is_running(&rest_engine_process)) {
|
||||
PRINTF("Periodic: Set timer for /%s to %lu\n",
|
||||
resource->url, resource->periodic->period);
|
||||
PROCESS_CONTEXT_BEGIN(&rest_engine_process);
|
||||
etimer_set(&resource->periodic->periodic_timer,
|
||||
resource->periodic->period);
|
||||
PROCESS_CONTEXT_END(&rest_engine_process);
|
||||
}
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
|
@ -410,6 +410,7 @@ parse_tag(void)
|
|||
switch_majorstate(s.lastmajorstate);
|
||||
break;
|
||||
case TAG_BODY:
|
||||
do_word();
|
||||
s.majorstate = s.lastmajorstate = MAJORSTATE_BODY;
|
||||
break;
|
||||
case TAG_IMG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue