[HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528)

This commit is contained in:
shandianchengzi
2023-05-18 10:42:44 -04:00
committed by GitHub
parent c349fe68b8
commit a294d7da9a
15 changed files with 39 additions and 39 deletions
@@ -665,7 +665,7 @@ tcp_process(struct tcp_pcb *pcb)
pcb->nrtx = 0;
}
/* Call the user specified function to call when sucessfully
/* Call the user specified function to call when successfully
* connected. */
TCP_EVENT_CONNECTED(pcb, ERR_OK, err);
if (err == ERR_ABRT) {
@@ -186,7 +186,7 @@ PACK_STRUCT_END
/** Flags used on input processing, not on pcb->flags
*/
#define TF_RESET (u8_t)0x08U /* Connection was reset. */
#define TF_CLOSED (u8_t)0x10U /* Connection was sucessfully closed. */
#define TF_CLOSED (u8_t)0x10U /* Connection was successfully closed. */
#define TF_GOT_FIN (u8_t)0x20U /* Connection was closed by the remote end. */
@@ -148,7 +148,7 @@ void example_publish(mqtt_client_t *client, void *arg)
}
}
/* Called when publish is complete either with sucess or failure */
/* Called when publish is complete either with success or failure */
static void mqtt_pub_request_cb(void *arg, err_t result)
{
if(result != ERR_OK) {
@@ -148,7 +148,7 @@ void example_publish(mqtt_client_t *client, void *arg)
}
}
/* Called when publish is complete either with sucess or failure */
/* Called when publish is complete either with success or failure */
static void mqtt_pub_request_cb(void *arg, err_t result)
{
if(result != ERR_OK) {