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.
Revision 2:a6531d45321f, committed 2011-11-21
- Comitter:
- Nurbol
- Date:
- Mon Nov 21 19:25:35 2011 +0000
- Parent:
- 1:fc8017eb0c2a
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Nov 21 15:41:10 2011 +0000 +++ b/main.cpp Mon Nov 21 19:25:35 2011 +0000 @@ -174,9 +174,9 @@ // return last servo number // case READ_CMD : - command->nos_data = 1; // no data to be returned - command->result_data[0] = counter1p; - command->result_data[1] = counter2p; + command->nos_data = 2; // no data to be returned + command->result_data[0] = valueLED1; + command->result_data[1] = valueLED2; break; // // catch any problems @@ -271,7 +271,6 @@ timercounter1p.attach(&counter1, 0.1); //function counter1 is reading all the 0.1 ms clk = !clk; - wait(0.1); get_cmd(&ext_cmd); //