ADXL345 partial interrupt source read

I have a very unique circuit that i want to have one interrupt (INT1) from ADXL345 enabled, while i will be able to clear the second (INT2). I DONT want to clear both, only the second.

Although i have read dozens of times the datasheet and look deep into sparkfun’s code i dont find a way to do that.

I am not intersted in reading IF the INT1 is enabled, or which interrupt source has been triggered. I want to have INT1 high, while INT2 will be cleared on demand independently.

According to datasheet INT_SOURCE once read clears the interrupts, but in the library i cannot find a way to read ONLY the bit i want, although i can read the whole 0x30 (INT_SOURCE) byte and return the byte of a specific INT source…