... and for those of you playing at home extra points are awarded for figuring out
why this part of the code is a bad idea:
hint- the OnTimer event is called by the timer ISR
why this part of the code is a bad idea:
Code:
dim mS as word = 0 // this is the timer count value. initialize it to 0 on startup
dim StartTime, EndTime as word // these are for the first elapsed time
// OnTimer event
event OnTimer()
Inc(mS)
end event
StartTime = mS
EndTime = mS
hint- the OnTimer event is called by the timer ISR