cleanup code

This commit is contained in:
Harald Pichler 2016-11-03 08:11:42 +01:00
parent 0556557d8b
commit 79b69334df
3 changed files with 14 additions and 13 deletions

View file

@ -75,12 +75,7 @@ PROCESS_THREAD(arduino_sketch, ev, data)
if(ev == sensors_event && data == &button_sensor) {
mcu_sleep_off();
PRINTF("*******BUTTON*******\n");
/* Call the event_handler for this application-specific event. */
res_event.trigger();
/* Also call the separate response example handler. */
res_separate.resume();
button ();
mcu_sleep_on();
}
#endif /* PLATFORM_HAS_BUTTON */