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
Diff: src/serial.cpp
- Revision:
- 3:d8948c5b2951
- Parent:
- 2:46faae84b8b0
- Child:
- 7:860b3a8275cb
diff -r 46faae84b8b0 -r d8948c5b2951 src/serial.cpp
--- a/src/serial.cpp Sun Nov 25 01:23:33 2018 +0000
+++ b/src/serial.cpp Tue Nov 27 17:47:57 2018 +0000
@@ -94,12 +94,16 @@
// sends carriage return and linefeed and prompt character
+/*
void sendCRLF(void)
{
char strMenu[30] ={0};
-/*
+
+ menu_type = MENU_DCM1;
+
switch(menuType)
{
+ case MENU_DCM1: strcpy(strMenu,"DCM1"); break;
case MENU_DIFFERENTIAL: strcpy(strMenu,"DIFF"); break;
case MENU_SINGLE: strcpy(strMenu,"SINGLE"); break;
case MENU_DUAL: strcpy(strMenu,"DUAL"); break;
@@ -113,7 +117,7 @@
case MENU_MAIN: strcpy(strMenu,"MAIN"); break;
default: strcpy(strMenu,"UNDF"); break;
}
-*/
+
// append the CR,LF and the ready character
if(serialStatus.computer)
{
@@ -121,12 +125,12 @@
}
else
{
+ // adds a carrot so you know you are talking in terminal
sprintf(strbuf,"\n\r%s>",strMenu);
sendSerial(strbuf);
- // adds a carrot so you know you are talking in terminal
// sendSerial("\n\r>");
}
-}
+}*/
// send buffer to the serial port
void sendSerial(char *buf)