diff --git a/cores/nRF5/common_func.h b/cores/nRF5/common_func.h index 322ba84d..814e1b47 100644 --- a/cores/nRF5/common_func.h +++ b/cores/nRF5/common_func.h @@ -112,9 +112,9 @@ int cprintf(const char * format, ...); #define PRINT_BUFFER(buf, n) \ do {\ uint8_t const* p8 = (uint8_t const*) (buf);\ - Serial.print(#buf ": ");\ + cprintf(#buf ": ");\ for(uint32_t i=0; i<(n); i++) cprintf("%02x ", p8[i]);\ - Serial.println();\ + cprintf("\n");\ }while(0) #else diff --git a/cores/nRF5/main.cpp b/cores/nRF5/main.cpp index 09c09167..28003149 100644 --- a/cores/nRF5/main.cpp +++ b/cores/nRF5/main.cpp @@ -16,7 +16,7 @@ #define ARDUINO_MAIN #include "Arduino.h" -#define MEMINFO_INTERVAL 10000 +#define MEMINFO_INTERVAL 30000 // Weak empty variant initialization function. // May be redefined by variant files.