diff --git a/core/net/mac/contikimac/contikimac.c b/core/net/mac/contikimac/contikimac.c index 405cc52f7..f19aca717 100644 --- a/core/net/mac/contikimac/contikimac.c +++ b/core/net/mac/contikimac/contikimac.c @@ -454,8 +454,10 @@ powercycle(struct rtimer *t, void *ptr) rtimer_arch_sleep(CYCLE_TIME - (RTIMER_NOW() - cycle_start)); } else { sleepcycle = 0; +#ifndef RDC_CONF_PT_YIELD_OFF schedule_powercycle_fixed(t, CYCLE_TIME + cycle_start); PT_YIELD(&pt); +#endif } #else schedule_powercycle_fixed(t, CYCLE_TIME + cycle_start); diff --git a/examples/osd/arduino-plantobserving/project-conf.h b/examples/osd/arduino-plantobserving/project-conf.h index e9408e312..ffd707acd 100644 --- a/examples/osd/arduino-plantobserving/project-conf.h +++ b/examples/osd/arduino-plantobserving/project-conf.h @@ -38,6 +38,9 @@ #define SICSLOWPAN_CONF_FRAG 1 +/* Save energy */ +#define RDC_CONF_PT_YIELD_OFF + /* For Debug: Dont allow MCU sleeping between channel checks */ //#undef RDC_CONF_MCU_SLEEP //#define RDC_CONF_MCU_SLEEP 0