ps3 with sbdbt
Diff: PS3.cpp
- Revision:
- 1:feb844c4721e
- Parent:
- 0:87f83956cb4c
- Child:
- 2:fe29007fb56c
--- 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)