remove unused debug printf's.
This commit is contained in:
parent
9b34726c0d
commit
498debc826
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#ifdef NRF_DEBUG_PRINT
|
#ifdef NRF_DEBUG_PRINT
|
||||||
extern void dbg_dump_RAMreg(void);
|
extern void dbg_dump_RAMreg(void);
|
||||||
|
#include "supervisor/serial.h" // dbg_printf()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RTC_DATA_ATTR __attribute__((section(".uninitialized")))
|
#define RTC_DATA_ATTR __attribute__((section(".uninitialized")))
|
||||||
@ -78,7 +79,7 @@ static void initialize_sleep_memory(void) {
|
|||||||
|
|
||||||
set_memory_retention();
|
set_memory_retention();
|
||||||
#ifdef NRF_DEBUG_PRINT
|
#ifdef NRF_DEBUG_PRINT
|
||||||
dbg_dump_RAMreg();
|
//dbg_dump_RAMreg();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_sleep_mem_magicnum = SLEEP_MEMORY_DATA_GUARD;
|
_sleep_mem_magicnum = SLEEP_MEMORY_DATA_GUARD;
|
||||||
@ -87,6 +88,9 @@ static void initialize_sleep_memory(void) {
|
|||||||
void alarm_sleep_memory_reset(void) {
|
void alarm_sleep_memory_reset(void) {
|
||||||
if (!is_sleep_memory_valid()) {
|
if (!is_sleep_memory_valid()) {
|
||||||
initialize_sleep_memory();
|
initialize_sleep_memory();
|
||||||
|
#ifdef NRF_DEBUG_PRINT
|
||||||
|
dbg_printf("sleep memory initialized\r\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user