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.
Dependencies: mbed MPU6050_2 SDFileSystem3 HCSR04_2
Diff: main.cpp
- Revision:
- 32:48d5d3f77c41
- Parent:
- 31:dba3216c2755
- Child:
- 33:0f7a35d55316
--- 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;