Nasrun

Dependencies:   mbed

Fork of project_ShipDot by Jirat Nakarit

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;