[gnoduino: 7/237] Removing BYTE keyword (use Serial.write() instead).
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino: 7/237] Removing BYTE keyword (use Serial.write() instead).
- Date: Sat, 31 Mar 2012 20:15:25 +0000 (UTC)
commit 7c86d2de79e77590a084cdd4893768cb633d2851
Author: David A. Mellis <d mellis arduino cc>
Date: Sat Feb 26 13:58:03 2011 -0500
Removing BYTE keyword (use Serial.write() instead).
arduino/cores/arduino/Print.cpp | 8 ++++----
arduino/cores/arduino/Print.h | 9 ++++-----
2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/arduino/cores/arduino/Print.cpp b/arduino/cores/arduino/Print.cpp
index 4ee556d..eb1a8de 100755
--- a/arduino/cores/arduino/Print.cpp
+++ b/arduino/cores/arduino/Print.cpp
@@ -55,9 +55,9 @@ void Print::print(const char str[])
write(str);
}
-void Print::print(char c, int base)
+void Print::print(char c)
{
- print((long) c, base);
+ write(c);
}
void Print::print(unsigned char b, int base)
@@ -119,9 +119,9 @@ void Print::println(const char c[])
println();
}
-void Print::println(char c, int base)
+void Print::println(char c)
{
- print(c, base);
+ print(c);
println();
}
diff --git a/arduino/cores/arduino/Print.h b/arduino/cores/arduino/Print.h
index b092ae5..c090636 100755
--- a/arduino/cores/arduino/Print.h
+++ b/arduino/cores/arduino/Print.h
@@ -29,7 +29,6 @@
#define HEX 16
#define OCT 8
#define BIN 2
-#define BYTE 0
class Print
{
@@ -43,8 +42,8 @@ class Print
void print(const String &);
void print(const char[]);
- void print(char, int = BYTE);
- void print(unsigned char, int = BYTE);
+ void print(char);
+ void print(unsigned char, int = DEC);
void print(int, int = DEC);
void print(unsigned int, int = DEC);
void print(long, int = DEC);
@@ -53,8 +52,8 @@ class Print
void println(const String &s);
void println(const char[]);
- void println(char, int = BYTE);
- void println(unsigned char, int = BYTE);
+ void println(char);
+ void println(unsigned char, int = DEC);
void println(int, int = DEC);
void println(unsigned int, int = DEC);
void println(long, int = DEC);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]