[Tinyos-devel] TOSSIM sim_noise.h question

Chieh-Jan (Mike) Liang cliang4 at cs.jhu.edu
Thu Sep 6 19:46:19 PDT 2007


Sorry, I meant sim_noise.c, not sim_noise.h.

Thank you

Mike

Chieh-Jan (Mike) Liang wrote:
> I am looking at sim_noise.h, and line 424 puzzles me.
> 
>    sim_noise_add(node_id, noiseData[node_id].noiseTrace[i+1])
> 
> I am not too sure why noiseTrace[i+1] is passed to sim_noise_add(), 
> instead noiseTrace[i]. Since i is bounded by noiseTraceIndex, wouldn't 
> i+1 go out of bound?
> 
> Thank you
> 
> Mike
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel


More information about the Tinyos-devel mailing list