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
Fork of project_ShipDot by
Diff: main.cpp
- Revision:
- 20:4b9be9a423a8
- Parent:
- 19:d78586719868
- Child:
- 21:d76aa19984be
--- a/main.cpp Sat Dec 03 16:30:22 2016 +0000
+++ b/main.cpp Sat Dec 03 16:48:27 2016 +0000
@@ -300,7 +300,6 @@
char ch = as;
return ch ;
}
-
int char2posit(char cha){
int as = cha;
as = as-48;
@@ -428,7 +427,7 @@
select_Position = 0;
while(1){
if(bt.readable()){
- if(replica_data_fromEnemy!='q'){
+ if(replica_data_fromEnemy!='q' and replica_data_fromEnemy!=8){
data_fromEnemy = char2posit(replica_data_fromEnemy);
if(data_fromEnemy!=18){
select_Position = data_fromEnemy;
