Skip to content

Commit

Permalink
Replace parerr with errpar
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Sep 15, 2022
1 parent 174dcc1 commit af7ed5f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typedef enum {
lwespOK = 0, /*!< Function succeeded */
lwespOKIGNOREMORE, /*!< Function succedded, should continue as lwespOK but ignore sending more data. This result is possible on connection data receive callback */
lwespERR, /*!< General error */
lwespPARERR, /*!< Wrong parameters on function call */
lwespERRPAR, /*!< Wrong parameters on function call */
lwespERRMEM, /*!< Memory error occurred */
lwespTIMEOUT, /*!< Timeout occurred on command */
lwespCONT, /*!< There is still some command to be processed in current command */
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extern "C" {
if (!(c)) { \
LWESP_DEBUGF(LWESP_CFG_DBG_ASSERT, "Assert failed in file %s on line %d: %s\r\n", __FILE__, (int)__LINE__, \
#c); \
return lwespPARERR; \
return lwespERRPAR; \
} \
} while (0)

Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/lwesp/lwesp_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ lwespi_initiate_cmd(lwesp_msg_t* msg) {
conn_type_str = "SSLV6";
#endif /* LWESP_CFG_IPV6 */
} else {
return lwespPARERR;
return lwespERRPAR;
}

AT_PORT_SEND_BEGIN_AT();
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/lwesp/lwesp_pbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ lwesp_pbuf_take(lwesp_pbuf_p pbuf, const void* data, size_t len, size_t offset)
}

if (pbuf->tot_len < (len + offset)) {
return lwespPARERR;
return lwespERRPAR;
}

/* First only copy in case we have some offset from first pbuf */
Expand Down

0 comments on commit af7ed5f

Please sign in to comment.