Skip to content

Commit 215a790

Browse files
committed
Change to use copy assignment operator for RTWInterface::scan
1 parent f24a409 commit 215a790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static rtw_result_t scan_result_handler( rtw_scan_handler_result_t* malloced_sca
7373
}
7474
ap.rssi = record->signal_strength;
7575
ap.channel = record->channel;
76-
new (&scan_handler->ap_details[scan_handler->ap_num]) WiFiAccessPoint(ap);
76+
scan_handler->ap_details[scan_handler->ap_num] = WiFiAccessPoint(ap);
7777
}
7878
scan_handler->ap_num++;
7979
} else{

0 commit comments

Comments
 (0)