添加与app对接协议
This commit is contained in:
@@ -302,9 +302,9 @@ uint8_t embedded_device_choice(device_t *port, uint8_t type)
|
||||
return DEVICE_OK;
|
||||
}
|
||||
|
||||
int embedded_device_read(device_t *port, void *buffer, uint32_t length)
|
||||
int embedded_device_read(device_t *port, void *buffer, uint32_t length, uint32_t timeout)
|
||||
{
|
||||
return sb_data_port_read(port->embedded_device, buffer, length, 0);
|
||||
return sb_data_port_read(port->embedded_device, buffer, length, timeout);
|
||||
}
|
||||
|
||||
int embedded_device_write(device_t *port, void *buffer, uint32_t length)
|
||||
|
||||
Reference in New Issue
Block a user