4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 05:10:26 +08:00

Merge pull request #2534 from HubertXie/master

修复一些隐藏的bug
This commit is contained in:
Bernard Xiong 2019-04-02 17:26:29 +08:00 committed by GitHub
commit 2f7abc501c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)