mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-09 01:57:21 +02:00
Various bugfixes
This commit is contained in:
@@ -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 << ',';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user