Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: internal/common.h
- Revision:
- 1:6ec9998427ad
- Parent:
- 0:ea85c4bb5e1f
- Child:
- 2:05e20e184e7e
--- a/internal/common.h Mon Aug 11 09:58:24 2014 +0000 +++ b/internal/common.h Mon Aug 11 03:29:30 2014 -0700 @@ -57,17 +57,14 @@ #ifdef WICONNECT_USE_DEFAULT_STRING_BUFFERS #define SET_STR_BUFFER(_buffer, size) \ char *ptr, *buf; \ - (void)buf; \ static char defaultBuffer[size]; \ ptr = buf = (_buffer == NULL) ? defaultBuffer : _buffer; #else #define SET_STR_BUFFER(_buffer, size) \ char *ptr, *buf; \ - (void)buf; \ if(_buffer == NULL) \ { \ return "<null>"; \ } \ ptr = buf = _buffer; #endif -