diff --git a/platform/avr-atmega128rfa1/contiki-main.c b/platform/avr-atmega128rfa1/contiki-main.c index 41fccfebe..93bbe4496 100644 --- a/platform/avr-atmega128rfa1/contiki-main.c +++ b/platform/avr-atmega128rfa1/contiki-main.c @@ -225,6 +225,18 @@ uint16_t p=(uint16_t)&__bss_end; } #endif +/* Get a random (or probably different) seed for the 802.15.4 packet sequence number. + * Some layers will ignore duplicates found in a history (e.g. Contikimac) + * causing the initial packets to be ignored after a short-cycle restart. + */ + ADMUX =0x1E; //Select AREF as reference, measure 1.1 volt bandgap reference. + ADCSRA=1<