Skip to content

Commit 4af494b

Browse files
committed
wifi: scan: change API to use explicit size
1 parent bf0c0ef commit 4af494b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CompostaUSBBridge/cmds_wifi_station.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ void CAtHandler::add_cmds_wifi_station() {
6464
scan_results += "unknown\r\n";
6565
}
6666
}
67+
String st(scan_results.length());
68+
srv.write_str((const char *)(st.c_str()));
69+
srv.write_str("|");
6770
srv.write_str((const char *)(scan_results.c_str()));
6871
}
6972
return chAT::CommandStatus::OK;

0 commit comments

Comments
 (0)