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.
Diff: source/main-https.cpp
- Branch:
- PassingRegression
- Revision:
- 106:e1f04c3d0647
- Parent:
- 105:e5ce023eee93
- Child:
- 107:f1a83fd41b17
diff -r e5ce023eee93 -r e1f04c3d0647 source/main-https.cpp
--- a/source/main-https.cpp	Mon May 06 09:06:36 2019 +0000
+++ b/source/main-https.cpp	Mon May 06 10:24:53 2019 +0000
@@ -375,6 +375,7 @@
 #define PAUSE_SECONDS   0
 #define PAUSE_SECONDS_BLE 0
 int main() {
+    device = new RawSerial(USBTX, USBRX, 2*DEFAULT_BAUD_RATE);
     initialise_debug();
 #ifdef MBED_MAJOR_VERSION
     dbg_printf(LOG, "Mbed OS version %d.%d.%d\n\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
@@ -383,7 +384,6 @@
     reset_counter++;
     print_memory_info();
     dbg_printf(LOG, "\r\n ++++++ PROGRAM STARTING -- reset count = %d ++++++ \r\n", reset_counter);
-    device = new RawSerial(USBTX, USBRX, 2*DEFAULT_BAUD_RATE);
     //device = new RawSerial(PA_9, PA_10, DEFAULT_BAUD_RATE);
     
     dbg_printf(LOG, "*** HELLO MESSAGE *** \n %s", (char *)&hello_msg[6]);