mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Various bugfixes
This commit is contained in:
@@ -40,13 +40,13 @@ public:
|
||||
m_last_leader_updated(std::chrono::system_clock::now()){
|
||||
update_leader();
|
||||
|
||||
xTaskCreate(router_thread, "communication_router", 2048, this, 3, &this->m_router_thread);
|
||||
xTaskCreate(router_thread, "communication_router", 4096, this, 3, &this->m_router_thread);
|
||||
|
||||
const auto num_channels = MODULE_TO_NUM_CHANNELS_MAP[ConfigManager::get_module_type()];
|
||||
this->m_link_layer_threads.resize(num_channels);
|
||||
for (uint8_t i = 0; i < num_channels; i++) {
|
||||
auto *params = new link_layer_thread_params(this, i);
|
||||
xTaskCreate(link_layer_thread, "communication_router_rmt", 3096, params, 3, &this->m_link_layer_threads[i]);
|
||||
xTaskCreate(link_layer_thread, "communication_router_rmt", 4096, params, 3, &this->m_link_layer_threads[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class TCPServer : IRPCServer {
|
||||
public:
|
||||
TCPServer(int port, const std::shared_ptr<PtrQueue<std::vector<uint8_t>>>& rx_queue);
|
||||
~TCPServer();
|
||||
int send_msg(char* buffer, size_t length) const;
|
||||
int send_msg(char* buffer, uint32_t length) const;
|
||||
|
||||
private:
|
||||
bool authenticate_client(int client_sock);
|
||||
|
||||
@@ -13,7 +13,7 @@ public:
|
||||
~mDNSDiscoveryService() = delete;
|
||||
|
||||
static void setup();
|
||||
static void set_connected_boards(std::vector<int>& boards);
|
||||
static void set_connected_boards(const std::vector<int>& boards);
|
||||
};
|
||||
|
||||
#endif //DISCOVERYSERVICE_H
|
||||
|
||||
Reference in New Issue
Block a user