standalone sx1276 demo program

Dependencies:   SX1276Lib mbed

Fork of SX1276_GPS by CaryCoders

Revision:
31:2c813f321db7
Parent:
29:0ea07cc7124b
Child:
32:a2472bbe7c92
diff -r 6b0785d23528 -r 2c813f321db7 console_chat.cpp
--- a/console_chat.cpp	Tue Jun 16 11:56:16 2015 +0000
+++ b/console_chat.cpp	Tue Jul 14 14:58:23 2015 +0000
@@ -2,7 +2,7 @@
 #include "sx1276-hal.h"
 #include "main.h"
 #include "debug.h"
-#include "vt100.h"
+//radfta #include "vt100.h"
 #include "serial_api.h"
  
 void console_chat()
@@ -57,7 +57,7 @@
 
 void print_help()
 {
-                ctrl.cls();
+                //radfta ctrl.cls();
                 printf("     Radio Utilities    \r\n");
                 printf("-----------------------------------------\r\n");
                 print_status();
@@ -135,26 +135,26 @@
                 AlwaysMaster=false;
                 break;        
              case 'G':
-                ctrl.cls();
+                // radfta ctrl.cls();
                 debug("Starting GPS exchange\r\n");
                 gpsEnabled = true;
                 fflush(stdout);
                 app = APP_HELLO;
-                gpsd.l_latitude = gpsd.l_longitude = gpsd.r_latitude = gpsd.r_longitude = 0;
+                // radfta gpsd.l_latitude = gpsd.l_longitude = gpsd.r_latitude = gpsd.r_longitude = 0;
                 Radio.Rx( RX_TIMEOUT_VALUE );
                 Radio.Tx( TX_TIMEOUT_VALUE );
                 break;    
             case 'P':
-                ctrl.cls();
+                // radfta ctrl.cls();
                 debug("Starting ping pong app\r\n");
                 fflush(stdout);
                 app = APP_PING;
-                gpsd.l_latitude = gpsd.l_longitude = gpsd.r_latitude = gpsd.r_longitude = 0;
+                // radfta gpsd.l_latitude = gpsd.l_longitude = gpsd.r_latitude = gpsd.r_longitude = 0;
                 Radio.Rx( RX_TIMEOUT_VALUE );
                 Radio.Tx( TX_TIMEOUT_VALUE );
                 break;
            case 'H':
-                ctrl.cls();
+                // radfta ctrl.cls();
                 debug("Starting hello exchange\r\n");
                 gpsEnabled = false;
                 fflush(stdout);
@@ -163,7 +163,7 @@
                 Radio.Tx( TX_TIMEOUT_VALUE );
                 break;                
             case 'C':
-                ctrl.cls();
+                // radfta  ctrl.cls();
                 printf("Starting chat app\r\n");
                 //printf("-chat-> ");
                 fflush(stdout);