Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of master_sample by
Diff: main.cpp
- Revision:
- 2:385ef26be324
- Parent:
- 1:d4903940ac9b
- Child:
- 3:583585376a2d
--- a/main.cpp Sat Dec 06 13:25:46 2014 +0000
+++ b/main.cpp Sun Dec 07 09:11:25 2014 +0000
@@ -26,8 +26,9 @@
//printf("m2s_interrupt is 0");
printf("\npress a for master to start \n\r");
m2s_interrupt=0;
- if(pc.getc()=='a'){
- printf("\n backspace detected\n\r");
+ *data_send=pc.getc();
+ //if(pc.getc()=='a'){
+ printf("\ncommand detected\n\r");
m2s_interrupt =1; //hardware interrupt from master to slave
// wait(10);
master_status_write = true;
@@ -48,7 +49,7 @@
}
printf("done\n\r");
- }}
+ }
}
