int m_vane;
int m_sum;
- task void readVane();
-
void init()
{
m_count = 0;
}
#if 0
+ task void readVane();
+
async event void Alarm.fired()
-#else
- event void Timer.fired()
-#endif
{
- //call Alarm.start(call Alarm.getAlarm() + period);
+ call Alarm.start(call Alarm.getAlarm() + period);
post readVane();
}
task void readVane()
{
//call Alarm.start(call Alarm.getAlarm() + period);
+#else
+ event void Timer.fired()
+ {
+#endif
if (!(call State.isIdle()))
call Read.read();
}