debevv / nanoMODBUS

A compact MODBUS RTU/TCP C library for embedded/microcontrollers
MIT License
234 stars 47 forks source link

return type for nmbs_create #27

Closed rlstrand closed 1 year ago

rlstrand commented 1 year ago

nmbs_create is declared:

int nmbs_create(nmbs_t nmbs, const nmbs_platform_conf platform_conf)

All the return values are of nmbs_error enum type. Should most likely be:

nmbs_error nmbs_create(nmbs_t nmbs, const nmbs_platform_conf platform_conf)

debevv commented 1 year ago

44f319173566f01e56355c0031a75f6609b95b57