Alex Allen / UM12

Dependents:   Balloon

Revision:
2:f2cf3a42e690
Parent:
1:84430ccc5662
Child:
4:c947442469dd
diff -r 84430ccc5662 -r f2cf3a42e690 UM12.cpp
--- a/UM12.cpp	Tue Jul 19 19:29:21 2011 +0000
+++ b/UM12.cpp	Fri Jul 22 10:57:14 2011 +0000
@@ -42,6 +42,11 @@
     putc(msg);
 }
 
+void UM12::send(bool msg)
+{
+    putc((int) msg);
+}
+
 void UM12::send(int msg)
 {
         char *ch;
@@ -62,6 +67,12 @@
     return msg;
 }
 
+bool UM12::receive(bool &msg)
+{
+    msg = getc();
+    return msg;
+}
+
 int UM12::receive(int &msg)
 {
     int i, intsize = sizeof(int);