Hacker News new | ask | show | jobs
by miander 3637 days ago
But then the maximum would probably be 255.
2 comments

WARNING - Did not RTFA, but I think I get the gist.

If they use an 8 bit counter, then the detection is basically the axle count % 256. Axle #256 crossing would reset the counter to zero, indicating a safe track, when if wasn't.

And 256 would be 0