Formatting
This commit is contained in:
parent
c654babb52
commit
98814d2a66
@ -81,7 +81,8 @@ static void put_2(nmbs_t *m, uint16_t w) {
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
static uint16_t get_2(nmbs_t* nmbs) {
|
static uint16_t get_2(nmbs_t* nmbs) {
|
||||||
uint16_t result = ((uint16_t) (nmbs->msg.buf[nmbs->msg.buf_idx + 1])) | (((uint16_t) nmbs->msg.buf[nmbs->msg.buf_idx] << 8));
|
uint16_t result =
|
||||||
|
((uint16_t) (nmbs->msg.buf[nmbs->msg.buf_idx + 1])) | (((uint16_t) nmbs->msg.buf[nmbs->msg.buf_idx] << 8));
|
||||||
nmbs->msg.buf_idx += 2;
|
nmbs->msg.buf_idx += 2;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -252,7 +252,8 @@ nmbs_error nmbs_server_create(nmbs_t* nmbs, uint8_t address_rtu, const nmbs_plat
|
|||||||
|
|
||||||
/** Set the request/response timeout.
|
/** Set the request/response timeout.
|
||||||
* If the target instance is a server, sets the timeout of the nmbs_server_poll() function.
|
* If the target instance is a server, sets the timeout of the nmbs_server_poll() function.
|
||||||
* If the target instance is a client, sets the response timeout after sending a request. In case of timeout, the called method will return NMBS_ERROR_TIMEOUT.
|
* If the target instance is a client, sets the response timeout after sending a request. In case of timeout,
|
||||||
|
* the called method will return NMBS_ERROR_TIMEOUT.
|
||||||
* @param nmbs pointer to the nmbs_t instance
|
* @param nmbs pointer to the nmbs_t instance
|
||||||
* @param timeout_ms timeout in milliseconds. If < 0, the timeout is disabled.
|
* @param timeout_ms timeout in milliseconds. If < 0, the timeout is disabled.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user