chris stevens
/
SerialPassthroughcjsESP8266
cwm2016
Fork of SerialPassthrough by
Revision 9:b1344ca3497d, committed 2016-06-08
- Comitter:
- cstevens
- Date:
- Wed Jun 08 10:07:11 2016 +0000
- Parent:
- 8:34cc66421054
- 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 |
diff -r 34cc66421054 -r b1344ca3497d main.cpp --- 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. } }