adxl362 as a motion switch

Hi all

I have one ADXL362 board that i configured as a montion switch using this library: ADXL362 by annem - example motion_activated_sleep

Basically i use Uno to set some registers using SPI and i attached a led on INT1 to see the result: led is ON for some seconds when i move the board, exactly like expected.

I removed ADXL362 board and just connect power and a LED on INT1, but it does nothing. It seems that changes made to registry by SPI are not saved on the device after power off. If i put back to Uno an run the code, it starts working.

How do i write changes to ADXL362 that are kept after power cycle?

Thanks