X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2FMultihopOscilloscope%2FMultihopOscilloscopeC.nc;h=a7f39ca62041355d2ea9e79c1667babab6b34023;hb=2bba3c3f09b597a543eefa002c1c8789d5db0c89;hp=5179b3500d46aa8a37c9c3ba2a40a0e1a22d8687;hpb=2df40bbea3c314cf5288abb0a131a1d9aa22c681;p=tinyos-2.x.git diff --git a/apps/MultihopOscilloscope/MultihopOscilloscopeC.nc b/apps/MultihopOscilloscope/MultihopOscilloscopeC.nc index 5179b350..a7f39ca6 100644 --- a/apps/MultihopOscilloscope/MultihopOscilloscopeC.nc +++ b/apps/MultihopOscilloscope/MultihopOscilloscopeC.nc @@ -265,7 +265,8 @@ implementation { data = 0xffff; report_problem(); } - local.readings[reading++] = data; + if (reading < NREADINGS) + local.readings[reading++] = data; }