Fix compile errors with SDCC

Intermingled declarations and code are not yet implemented in sdcc.
This commit is contained in:
George Oikonomou 2012-03-08 15:28:04 +00:00
parent 9217c8b321
commit e6819effef
2 changed files with 15 additions and 8 deletions

View file

@ -358,11 +358,14 @@ powercycle_turn_radio_on(void)
static char
powercycle(struct rtimer *t, void *ptr)
{
#if SYNC_CYCLE_STARTS
static volatile rtimer_clock_t sync_cycle_start;
static volatile uint8_t sync_cycle_phase;
#endif
PT_BEGIN(&pt);
#if SYNC_CYCLE_STARTS
static volatile rtimer_clock_t sync_cycle_start;
static volatile uint8_t sync_cycle_phase;
sync_cycle_start = RTIMER_NOW();
#else
cycle_start = RTIMER_NOW();