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: RemoteIR TextLCD
Revision 10:67c7f1c85cdd, committed 2020-07-30
- Comitter:
- nishimura_taku_pet
- Date:
- Thu Jul 30 00:37:49 2020 +0000
- Parent:
- 9:4ee4fcfd6a5c
- Commit message:
- commit
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jul 29 07:53:43 2020 +0000
+++ b/main.cpp Thu Jul 30 00:37:49 2020 +0000
@@ -276,19 +276,19 @@
run = LEFT;
break;
case 4:
- flag_sp += 3;
+ flag_sp %= 3 + 3;
run = RIGHT;
break;
case 5:
- flag_sp += 3;
+ flag_sp %= 3 + 3;
run = LEFT;
break;
case 6:
- flag_sp += 6;
+ flag_sp %= 3 + 6;
run = RIGHT;
break;
case 7:
- flag_sp += 6;
+ flag_sp %= 3 + 6;
run = LEFT;
break;
}