Skip to content

Commit

Permalink
don't force server_address in client task and require to set it via c…
Browse files Browse the repository at this point in the history
…ommand line parameter.
  • Loading branch information
Apaisal committed Sep 22, 2024
1 parent fdc89e5 commit 1433c3b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/csp_server_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ void client(void) {

uint16_t count = 0;
uint8_t csend[8] = {0};
server_address = 11;


csp_packet_t * packet;

while (1) {
Expand Down Expand Up @@ -305,9 +304,7 @@ int main(int argc, char * argv[]) {

// If more than one of the interfaces are set, print a message and exit
if (device_type == DEVICE_UNKNOWN) {
csp_print("Only one of the interfaces can be set.\n");
print_usage();
exit(EXIT_FAILURE);
csp_print("loopback interfaces set.\n");
} else {
csp_print("%s interfaces set.\n", device_name);
}
Expand Down

0 comments on commit 1433c3b

Please sign in to comment.