Skip to content

Commit

Permalink
init_protocol.c: corrected type and pointers qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Jun 26, 2024
1 parent 3ff45e6 commit 900a9b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ extern uint8_t init_protocol(comm_protocol *comm,
extern uint8_t init_protocol_default(comm_protocol *comm, enum CommProtocol protocol, const comm_callbacks *callbacks) {
if (protocol == SERIAL_RS232) {
serial_table.callbacks = (comm_callbacks*) callbacks;
return init_protocol(comm, &((const comm_protocol) serial_table));
return init_protocol(comm, &serial_table);
} else if (protocol == IEEE_1284) {
parallel_table.callbacks = callbacks;
return init_protocol(comm, &((const comm_protocol) parallel_table));
return init_protocol(comm, &parallel_table);
}
}

0 comments on commit 900a9b5

Please sign in to comment.