David Smart / NWSWeather

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Sat Feb 23 18:01:39 2019 +0000
Parent:
19:00af774c9b72
Commit message:
Modify return code on failure to indicate the cause.

Changed in this revision

NWSWeather.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NWSWeather.cpp	Sat Feb 23 16:48:49 2019 +0000
+++ b/NWSWeather.cpp	Sat Feb 23 18:01:39 2019 +0000
@@ -131,7 +131,7 @@
                 }
             } else {
                 WARN("get returned %d, no response?", ret);
-                retCode = noresponse;
+                retCode = (NWSReturnCode_T)ret; // return code from get also indicates type of error // noresponse;
                 break;
             }
         } else {