Paul,
Not disabling the interrupts in this case is probably fine. Copying an integer is probably an atomic operation (meaning it's not a divisible operation, i.e. it can't be interrupted.) And it doesn't matter if it interrupts between the copies.
I can't wait to hear how the new code controls the car.
David
|