bamlormakmak
Dependencies: mbed
Revision 5:587de5c5fc38, committed 2017-12-08
- Comitter:
- jaybehandsome
- Date:
- Fri Dec 08 20:40:25 2017 +0000
- Parent:
- 4:75962425e27b
- Commit message:
- puck you
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 75962425e27b -r 587de5c5fc38 main.cpp --- a/main.cpp Fri Dec 08 20:34:25 2017 +0000 +++ b/main.cpp Fri Dec 08 20:40:25 2017 +0000 @@ -8,6 +8,10 @@ int x = 0; char recieve; pc.printf("Hello World\n"); + for (x = 0; x<8; x++) + { + data[x] = NULL; + } // char ch; // pc.baud(38400); // bt.baud(38400); @@ -32,7 +36,7 @@ { if(bt.readable()) { - data[x] = pc.getc(); + data[x] = bt.getc(); if (data[x] == '!') { x = 0;