sohaib qamar / SWUpdate_RPC

Fork of SWUpdate by David Smart

Revision:
25:af99bdcca2b4
Parent:
24:e400edb8d2ee
Child:
26:f2bb6061dcb3
diff -r e400edb8d2ee -r af99bdcca2b4 SWUpdate.cpp
--- a/SWUpdate.cpp	Fri Nov 10 12:32:04 2017 +0000
+++ b/SWUpdate.cpp	Tue Nov 21 16:58:49 2017 +0000
@@ -47,7 +47,7 @@
 const char * SoftwareUpdateGetHTTPErrorMsg(HTTPResult r)
 {
     const char * p = "invalid result code";
-    if (r >= 0 && r <= SWUP_NO_SPACE)
+    if (r <= SWUP_NO_SPACE)
         p = SWErrorMsg[r];
     return p;
 }