fix(set-protocol): сохрани совместимость порта с ARMCC
This commit is contained in:
@@ -33,10 +33,12 @@ bool set_devboard_v1_stm32f407_init(
|
||||
if ((port == NULL) || (can == NULL)) {
|
||||
return false;
|
||||
}
|
||||
*port = (set_devboard_v1_stm32f407_t){0};
|
||||
port->can = can;
|
||||
port->unhandled = unhandled;
|
||||
port->unhandled_user = unhandled_user;
|
||||
port->rx_frames = 0U;
|
||||
port->tx_frames = 0U;
|
||||
port->tx_errors = 0U;
|
||||
return pcan_modbus_server_init(&port->server, device_type, device_id,
|
||||
read, write, register_user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user