From 0de954ca66356c9d808b765a67304917b447d207 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 20 Feb 2017 15:40:19 +0700 Subject: [PATCH] add printBuffer to Print --- cores/nRF5/Print.cpp | 14 ++++++++++++++ cores/nRF5/Print.h | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/cores/nRF5/Print.cpp b/cores/nRF5/Print.cpp index 9cfd605d..9e31c6b6 100644 --- a/cores/nRF5/Print.cpp +++ b/cores/nRF5/Print.cpp @@ -286,3 +286,17 @@ size_t Print::printFloat(double number, uint8_t digits) #endif +size_t Print::printBuffer(uint8_t const buffer[], int len, char delim) +{ + if (buffer == NULL || len == 0) return 0; + + for(int i=0; i