aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authornucho <javatea@it.willcomlive.jp>2012-03-18 03:34:59 +0900
committernucho <javatea@it.willcomlive.jp>2012-03-18 03:34:59 +0900
commit0d6f89ded38258a9f9ddb268cd7b41e64b530205 (patch)
treec68d8b3110c29a145286b41a4c215c2c24f62cfa /src/core
parent1e314f4a17455f2218fa3eac1f5e7554489b3431 (diff)
added function write(*str)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Print.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/Print.h b/src/core/Print.h
index abfd04e..3c83abe 100644
--- a/src/core/Print.h
+++ b/src/core/Print.h
@@ -6,6 +6,7 @@
#ifndef Print_h
#define Print_h
+#include <string.h>
#include "LPC11xx.h"
const char radix_bin[] = "01";
@@ -29,6 +30,7 @@ private:
public:
virtual void write(const char c) = 0;
void write(const char *s,int length);
+ void write(const char *s) { return write((const char *)s, strlen(s)); }
virtual void println(void);
void print(const char *s);