Bill Eccles / Mbed 2 deprecated WS-2010-PCInterface

Dependencies:   EthernetNetIf mbed

Files at this revision

API Documentation at this revision

Comitter:
BillEccles
Date:
Mon Jan 02 19:13:55 2012 +0000
Parent:
0:dfbd7dacdf8c
Commit message:

Changed in this revision

WeatherStationInterface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WeatherStationInterface.cpp	Mon Jan 02 18:33:43 2012 +0000
+++ b/WeatherStationInterface.cpp	Mon Jan 02 19:13:55 2012 +0000
@@ -1,3 +1,23 @@
+/*
+WeatherStationInterface.cpp
+An interface for the LaCrosse Technology WS-2010-13 PC Interface.
+
+Copyright (C)2012 William N. Eccles
+ 
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
+persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be includied in all copies or substiantial portions of the 
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECITON WITH
+THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
 #include "mbed.h"
 #include "EthernetNetIf.h"
 #include "HTTPClient.h"
@@ -175,7 +195,6 @@
     ethErr = eth.setup();
     if (ethErr) {
 //        mac.printf("Error %d in setup.\n\r", ethErr);
-        ethernetOK = false;
         errorHalt( false, false, false, true );                
     } else {
 //        mac.printf("Ethernet setup was successful.\n\r");