fixed sd_logger
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include "cmsis_os2.h"
|
||||
#include "BSP_GPIO.h"
|
||||
#include "BSP_ADC.h"
|
||||
|
||||
#include "BSP_SDLogger.h"
|
||||
#define LPTIM_CLK 500 // Hz
|
||||
#define SLEEP_TICK_TIME 1 // seconds to wait
|
||||
#define STAY_AWAKE_TIME 60 // seconds to stay awake without K15
|
||||
@@ -52,6 +52,8 @@ void BSP_POWER_WakeUp() {
|
||||
*/
|
||||
void BSP_POWER_EnterStandby() {
|
||||
|
||||
BSP_SDLogger_Flush();
|
||||
|
||||
// stop the sytem interrupts
|
||||
__disable_irq();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user