In the teensy connected a gyroscope and when i finish measurements of sensor the microcontroller goes into a hibernation state.
When going a hibernation state consumption has increased,if i delete the commands below in the code

Code:
void setup() {
    .
    .
    .
    .
    //SPI2.setSCK(46);
    //SPI2.setMOSI(44);
    //SPI2.setMISO(45);
    //SPI2.begin();
    //SPI2.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0));
   .
   .
   .
and run the program again consumption will be reduced.
When it goes to a hibernation state the spi communication does not stop??
What can i do?