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: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: MBEDEndpoint.cpp
- Revision:
- 30:5c670ec5d203
- Parent:
- 25:8e960728d50a
- Child:
- 32:a7b3c285446c
diff -r 19b50df4245c -r 5c670ec5d203 MBEDEndpoint.cpp
--- a/MBEDEndpoint.cpp	Fri Feb 28 05:20:00 2014 +0000
+++ b/MBEDEndpoint.cpp	Fri Feb 28 18:08:11 2014 +0000
@@ -37,13 +37,13 @@
      bool success = true;
      for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = NULL;
      this->m_error_handler = error_handler;
-     this->m_map = new MBEDToIOCResourceMap(error_handler);
-     this->logger()->log(ENDPOINT_VERSION_ANNOUNCE);
      if (success) this->logger()->turnLEDBlue();
+     if (success)this->logger()->log(ENDPOINT_VERSION_ANNOUNCE);
      if (success) success = this->initializeEthernet(ethernet);
      if (success) this->logger()->turnLEDYellow();
+     if (success)this->m_map = new MBEDToIOCResourceMap(error_handler);     
+     if (success) success = this->initializeTransports();
      if (success) success = this->initializeLights();
-     if (success) success = this->initializeTransports();
      if (success) this->logger()->turnLEDGreen();
      if (!success) closedown(2);
  }