Pololu Magnetic Encoder 12cpr

You only have 1 attach interrupt and it's set to rising, won't see channel A when it falls.