Minor fixes
This commit is contained in:
parent
0d6a5274f3
commit
44f3191735
@ -102,7 +102,7 @@ static void msg_state_req(nmbs_t* nmbs, uint8_t fc) {
|
|||||||
#endif
|
#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)
|
if (!nmbs)
|
||||||
return NMBS_ERROR_INVALID_ARGUMENT;
|
return NMBS_ERROR_INVALID_ARGUMENT;
|
||||||
|
|
||||||
@ -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,
|
NMBS_DEBUG_PRINT("%d NMBS res <- address_rtu %d\texception %d\n", nmbs->address_rtu, nmbs->msg.unit_id,
|
||||||
exception);
|
exception);
|
||||||
return exception;
|
return (nmbs_error) exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NMBS_ERROR_INVALID_RESPONSE;
|
return NMBS_ERROR_INVALID_RESPONSE;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user