pc,attachの変更
Dependencies: HCSR04_2 MPU6050_2 mbed SDFileSystem3
Fork of Autoflight2018_36 by
Revision 32:48d5d3f77c41, committed 2018-09-22
- Comitter:
- taknokolat
- Date:
- Sat Sep 22 10:41:41 2018 +0000
- Parent:
- 31:dba3216c2755
- Commit message:
- a
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r dba3216c2755 -r 48d5d3f77c41 main.cpp --- a/main.cpp Sat Sep 22 09:46:42 2018 +0000 +++ b/main.cpp Sat Sep 22 10:41:41 2018 +0000 @@ -562,6 +562,7 @@ if(count_op > changeModeCount){ operation_mode = BombwithPC; pc.printf("Goto Bombing mode\r\n"); + pc.attach(getSF_Serial, Serial::RxIrq); count_op = 0; } }else count_op = 0; @@ -574,6 +575,7 @@ if(count_op > changeModeCount){ operation_mode = RightLoop; pc.printf("Goto RightLoop mode\r\n"); + pc.attach(NULL, Serial::RxIrq); count_op = 0; } }else count_op = 0;