#include "Timer.h"
#include "Oscilloscope.h"
-module OscilloscopeC
+module OscilloscopeC @safe()
{
uses {
interface Boot;
data = 0xffff;
report_problem();
}
- local.readings[reading++] = data;
+ if (reading < NREADINGS)
+ local.readings[reading++] = data;
}
}