° enter stm32 deep sleep mode when unplug detected to give more time for sd card to flush internal buffer