Attach interrupt to two variables

Attach interrupt to two variables
0

#1

My application uses two Rotary input dials. I can use attachInterrupt to connect signal handlers to both of them, but the code is almost identical for both handlers. How can I get the source of the interrupt (the Rotary variable) in the interrupt handler?