Various bugfixes

This commit is contained in:
2025-07-12 23:50:53 -04:00
parent 74d4302075
commit c1d9a3a8b4
9 changed files with 47 additions and 32 deletions

View File

@@ -12,6 +12,7 @@
#include <string>
#include <format>
#include <iostream>
#include <sstream>
// todo: clean this up (strange to be a constructor) also need to add more details, need to add to routing table
@@ -32,11 +33,11 @@ void mDNSDiscoveryService::setup() {
mdns_service_txt_set("_robotcontrol", "_tcp", service_txt_data, 3);
}
void mDNSDiscoveryService::set_connected_boards(std::vector<int>& boards) {
void mDNSDiscoveryService::set_connected_boards(const std::vector<int>& boards) {
std::stringstream ss;
for (int i = 0; i < boards.size(); i++) {
ss << boards[i];
ss << std::to_string(boards[i]);
if (i < boards.size() - 1) {
ss << ',';
}