未验证 提交 2f7abc50 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2534 from HubertXie/master

修复一些隐藏的bug
......@@ -691,7 +691,7 @@ __exit:
static sfud_err aai_write(const sfud_flash *flash, uint32_t addr, size_t size, const uint8_t *data) {
sfud_err result = SFUD_SUCCESS;
const sfud_spi *spi = &flash->spi;
uint8_t cmd_data[6], cmd_size;
uint8_t cmd_data[8], cmd_size;
bool first_write = true;
SFUD_ASSERT(flash);
......
......@@ -737,7 +737,7 @@ int at_recv(int s, void *mem, size_t len, int flags)
int at_sendto(int socket, const void *data, size_t size, int flags, const struct sockaddr *to, socklen_t tolen)
{
struct at_socket *sock;
struct at_socket *sock = RT_NULL;
int len, result = 0;
if (at_dev_ops == RT_NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册