Skip to content

Commit

Permalink
electrostatic-framework: applied API changes to examples and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Jun 26, 2024
1 parent 8786dae commit 9e8235c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ static device_metadata test_parallel(void** args) {
return metadata;
}

const static comm_protocol serial_table = {
static comm_protocol serial_table = {
&test_serial
};

const static comm_protocol parallel_table = {
static comm_protocol parallel_table = {
&test_parallel
};

Expand All @@ -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 = callbacks;
return init_protocol(comm, &serial_table);
return init_protocol(comm, (const) &serial_table);
} else if (protocol == IEEE_1284) {
parallel_table.callbacks = callbacks;
return init_protocol(comm, &parallel_table);
return init_protocol(comm, (const) &parallel_table);
}
}

0 comments on commit 9e8235c

Please sign in to comment.