test
Fork of mbed-dev by
Diff: targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp
- Revision:
- 173:7d866c31b3c5
- Parent:
- 170:e3b6fe271b81
- Child:
- 175:b96e65c34a4d
--- a/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp Wed Aug 16 18:27:13 2017 +0100 +++ b/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp Thu Aug 31 17:27:04 2017 +0100 @@ -73,9 +73,7 @@ } ap.rssi = record->signal_strength; ap.channel = record->channel; - WiFiAccessPoint *accesspoint = new WiFiAccessPoint(ap); - memcpy(&scan_handler->ap_details[scan_handler->ap_num], accesspoint, sizeof(WiFiAccessPoint)); - delete[] accesspoint; + scan_handler->ap_details[scan_handler->ap_num] = WiFiAccessPoint(ap); } scan_handler->ap_num++; } else{