Skip to content

Commit

Permalink
coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Gouraud authored and sgouraud committed Jun 14, 2023
1 parent 10cbbec commit c53515f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osdpctl/cmd_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int handle_cmd_comset(int argc, char *argv[], struct osdp_cmd_comset *c)
return -1;

if (baud != 9600 && baud != 19200 && baud != 38400 && baud != 57600 &&
baud != 115200 && baud != 230400)
baud != 115200 && baud != 230400)
return -1;

c->address = (uint8_t)address;
Expand Down
2 changes: 1 addition & 1 deletion osdpctl/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int config_parse_key_channel_speed(const char *val, void *data)
return INI_FAILURE;

if (baud != 9600 && baud != 19200 && baud != 38400 && baud != 57600 &&
baud != 115200 && baud != 230400) {
baud != 115200 && baud != 230400) {
printf("Error: invalid baudrate %d\n", baud);
return INI_FAILURE;
}
Expand Down

0 comments on commit c53515f

Please sign in to comment.