Comment out stringprint(), it is not used

This fixes a compiler warning.
This commit is contained in:
Matthijs Kooijman 2015-07-02 13:39:33 +02:00
parent 06767dc4b2
commit 05b145146a
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ void printBuffer(uint8_t *buffer, uint8_t len) {
DEBUG_PRINTER.println();
}
/* Not used now, but might be useful in the future
static uint8_t *stringprint(uint8_t *p, char *s) {
uint16_t len = strlen(s);
p[0] = len >> 8; p++;
@ -45,6 +46,7 @@ static uint8_t *stringprint(uint8_t *p, char *s) {
memcpy(p, s, len);
return p+len;
}
*/
static uint8_t *stringprint_P(uint8_t *p, const char *s, uint16_t maxlen=0) {
// If maxlen is specified (has a non-zero value) then use it as the maximum