Skip to content

Commit

Permalink
Update Communication.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
oganigl authored Jan 31, 2025
1 parent ff441c8 commit 7a9a6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Src/Communication/Communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void stop_pwm_order_callback(){
Communication::received_stop_pwm_order = true;
}
Communication::Communication(Data_struct *data): Data(data){
ControlStationSocket = new ServerSocket(Communication_Data::PCU_IP,Communication_Data::TCP_CLIENT);
ControlStationSocket = new ServerSocket(Communication_Data::PCU_IP,Communication_Data::TCP_SERVER);
datagramSocket = new DatagramSocket(Communication_Data::PCU_IP,Communication_Data::UDP_PORT_PCU,Communication_Data::Backend,Communication_Data::UDP_PORT);
Enable_Buffer_Order = new HeapOrder(Communication_Data::ENABLE_BUFFER_ORDER,&received_enable_buffer_callback);
Disable_Buffer_Order = new HeapOrder(Communication_Data::DISABLE_BUFFER_ORDER,&received_disable_buffer_callback);
Expand All @@ -36,4 +36,4 @@ void Communication::send_UDP_packets(){

bool Communication::is_connected(){
return ControlStationSocket->is_connected();
}
}

0 comments on commit 7a9a6f8

Please sign in to comment.