Fix compiler warning for unused variable

This commit is contained in:
dak664 2011-05-18 11:22:25 -04:00
parent 55c1ce6e93
commit 580efaa412

View File

@ -329,7 +329,10 @@ schedule_powercycle_fixed(struct rtimer *t, rtimer_clock_t fixed_time)
static void
powercycle_turn_radio_off(void)
{
#if CONTIKIMAC_CONF_COMPOWER
uint8_t was_on = radio_is_on;
#endif /* CONTIKIMAC_CONF_COMPOWER */
if(we_are_sending == 0) {
off();
#if CONTIKIMAC_CONF_COMPOWER