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/types/ScanResultList.cpp
- Revision:
- 6:8a87a59d0d21
- Parent:
- 1:6ec9998427ad
- Child:
- 16:7f1d6d359787
--- a/internal/types/ScanResultList.cpp Mon Aug 11 04:00:39 2014 -0700 +++ b/internal/types/ScanResultList.cpp Mon Aug 11 13:55:07 2014 -0700 @@ -8,16 +8,16 @@ * written permission of ACKme Networks. */ -#include <assert.h> #include "Wiconnect.h" #include "types/ScanResult.h" - +#include "internal/common.h" /*************************************************************************************************/ ScanResultList::ScanResultList(int bufferLen_, void *buffer_) { - assert((bufferLen_ == 0 && buffer_ == NULL) || (bufferLen_ != 0 && buffer_ != NULL)); + Wiconnect *wiconnect = Wiconnect::getInstance(); + wiconnect_assert(wiconnect, "ScanResultList(), bad buffer", (bufferLen_ == 0 && buffer_ == NULL) || (bufferLen_ != 0 && buffer_ != NULL)); count = 0; listHead = listTail = NULL; buffer = (uint8_t*)buffer_;