Hi,

Just check if corresponding interrupt flags are set ... before clearing them !

that's all !

Alain