Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
debevv committed Jun 1, 2023
1 parent 0d6a527 commit 44f3191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nanomodbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static void msg_state_req(nmbs_t* nmbs, uint8_t fc) {
#endif


int nmbs_create(nmbs_t* nmbs, const nmbs_platform_conf* platform_conf) {
nmbs_error nmbs_create(nmbs_t* nmbs, const nmbs_platform_conf* platform_conf) {
if (!nmbs)
return NMBS_ERROR_INVALID_ARGUMENT;

Expand Down Expand Up @@ -386,7 +386,7 @@ static nmbs_error recv_res_header(nmbs_t* nmbs) {

NMBS_DEBUG_PRINT("%d NMBS res <- address_rtu %d\texception %d\n", nmbs->address_rtu, nmbs->msg.unit_id,
exception);
return exception;
return (nmbs_error) exception;
}

return NMBS_ERROR_INVALID_RESPONSE;
Expand Down

0 comments on commit 44f3191

Please sign in to comment.