volatile boolean variable changing between setup and ISR

You have created TWO flags - one in setup(), a second one in your ISR. If you want a variable accessible to both, it must be a global.

Regards,
Ray L.