修改枚举类名称
This commit is contained in:
@@ -31,7 +31,7 @@ int Protocol_write(const void *data, uint32_t size, uint32_t wait_ms)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Protocol_init(port_type_m port_type, void* port)
|
||||
void Protocol_init(port_type_e port_type, void* port)
|
||||
{
|
||||
protocol.port.data_port = port;
|
||||
protocol.port_type = port_type;
|
||||
@@ -137,11 +137,11 @@ void Protocol_buf_decode(void* data, uint32_t size)
|
||||
break;
|
||||
}
|
||||
}
|
||||
void protocol_set_message_status(message_status_m status)
|
||||
void protocol_set_message_status(message_status_e status)
|
||||
{
|
||||
protocol.message_status = status;
|
||||
}
|
||||
protocol_status_t get_protocol_status(void)
|
||||
protocol_status_e get_protocol_status(void)
|
||||
{
|
||||
protocol.protocol_status = PROTOCOL_STATUS_OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user