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.
Diff: PS3.cpp
- Revision:
- 1:feb844c4721e
- Parent:
- 0:87f83956cb4c
- Child:
- 2:fe29007fb56c
diff -r 87f83956cb4c -r feb844c4721e PS3.cpp --- a/PS3.cpp Tue May 10 08:18:54 2016 +0000 +++ b/PS3.cpp Mon Aug 15 04:52:14 2016 +0000 @@ -17,8 +17,13 @@ { if(Serial::readable()) { - for(int i = 0;i < 8;i++) - *(PS3Data+i) = Serial::getc(); + while(Serial::getc() != 128) + { + } + for(int i = 1;i < 8;i++) + { + *(PS3Data+i) = Serial::getc(); + } } } bool PS3::getButtonState(int button)