From 97fad974007aac0754a84375f71119b54279297f Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 8 Jun 2021 12:00:47 +0700 Subject: [PATCH] bump nRFCrypto, log clean up --- cores/nRF5/common_func.h | 6 +++--- libraries/Adafruit_nRFCrypto | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cores/nRF5/common_func.h b/cores/nRF5/common_func.h index ed5ac272..127b00d1 100644 --- a/cores/nRF5/common_func.h +++ b/cores/nRF5/common_func.h @@ -184,7 +184,7 @@ const char* dbg_err_str(int32_t err_id); // TODO move to other place #define PRINT_HEX(x) \ do {\ PRINTF("%s: %d: " #x " = 0x", __PRETTY_FUNCTION__, __LINE__);\ - char fmt[] = "%00X\n";\ + char fmt[] = "%00X\r\n";\ fmt[2] += 2*sizeof(x); /* Hex with correct size */\ PRINTF(fmt, (x) );\ }while(0) @@ -197,14 +197,14 @@ const char* dbg_err_str(int32_t err_id); // TODO move to other place if (i%16 == 0) PRINTF("\n"); \ PRINTF("%02x ", p8[i]); \ }\ - PRINTF("\n");\ + PRINTF("\r\n");\ }while(0) #define ADALOG(tag, ...) \ do { \ if ( tag ) PRINTF("[%-6s] ", tag);\ PRINTF(__VA_ARGS__);\ - PRINTF("\n");\ + PRINTF("\r\n");\ }while(0) #define ADALOG_BUFFER(_tag, _buf, _n) \ diff --git a/libraries/Adafruit_nRFCrypto b/libraries/Adafruit_nRFCrypto index 3686f241..7444c2e9 160000 --- a/libraries/Adafruit_nRFCrypto +++ b/libraries/Adafruit_nRFCrypto @@ -1 +1 @@ -Subproject commit 3686f2413672ec72e8f8a163d6c69fe7faa0b743 +Subproject commit 7444c2e9472b8731cbcb76be5216df04680c5529