cwm2016
Dependencies: mbed
Fork of SerialPassthroughcjsESP8266 by
Revision 9:b1344ca3497d, committed 2016-06-08
- Comitter:
- cstevens
- Date:
- Wed Jun 08 10:07:11 2016 +0000
- Parent:
- 8:34cc66421054
- Child:
- 10:c97e0ca91eec
- Commit message:
- FIXED THE PARTIAL READBACK PROBLEM BEING CAUSED BYT HTE SLEEP WAKEUP TIING ISSUE
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jun 08 09:14:56 2016 +0000 +++ b/main.cpp Wed Jun 08 10:07:11 2016 +0000 @@ -19,6 +19,7 @@ led1 = !led1; while(dev.readable()) { pc.putc(dev.getc()); + //wait_us(1); } } // subroutine to service the serial interrupt on the pc connection @@ -54,8 +55,9 @@ dev.attach(&dev_recv, Serial::RxIrq); - +int i=0; while(1) { - sleep(); // so for KL25z this is probably wrong.... but not yet tested 07-06-2016 + + (i++)%10; // THIS USED TO BE A SLEEP COMMAND BUT IT WAS CAUSING SOME TROUBLE. } }