Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: SmartRest.cpp
- Revision:
- 18:16192696c106
- Parent:
- 13:aba98ad2ac1b
- Child:
- 20:505d29d5bdfc
--- a/SmartRest.cpp Wed Mar 04 09:35:25 2015 +0000 +++ b/SmartRest.cpp Fri Mar 06 10:37:09 2015 +0000 @@ -26,9 +26,10 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "SmartRest.h" #include <stdlib.h> #include <string.h> +#include <stdio.h> +#include "SmartRest.h" /*-------------------------------------------------------------------------*/ @@ -225,8 +226,9 @@ uint8_t SmartRest::awaitResponse() { if ((_client.endRequest() != CLIENT_OK) || - (_client.awaitResponse() != CLIENT_OK)) + (_client.awaitResponse() != CLIENT_OK)) { return SMARTREST_INTERNAL_ERROR; + } _source = &_client.receiveData(); return SMARTREST_SUCCESS; }