makoto abe
/
ADK_BlueUSB
XOOMの動作状況を聞き処理を変えてみました。 USBケーブルを抜いた際に処理を終了するようにしました。
Diff: ADK.h
- Revision:
- 3:432e5675d240
- Parent:
- 2:a05c7cbe396f
diff -r a05c7cbe396f -r 432e5675d240 ADK.h --- a/ADK.h Thu May 26 19:08:55 2011 +0000 +++ b/ADK.h Fri May 27 18:51:15 2011 +0000 @@ -29,6 +29,9 @@ int read(u8 *buff, int len ); int write(u8 *buff, int len ); void loop(); + void loopend(){ + _loopend=true; + }; @@ -39,6 +42,8 @@ int _device; int _configuration; int _interfaceNumber; + + bool _loopend; };