Skip to content

Commit f60d20d

Browse files
authored
Merge pull request #136 from SimonFJ20/patch-1
Correct documentation on `ModbusServer::poll()`
2 parents 014b675 + 0279bfb commit f60d20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -735,14 +735,14 @@ Poll for requests
735735
#### Syntax
736736

737737
```
738-
virtual void poll() = 0;
738+
virtual int poll() = 0;
739739
```
740740

741741
#### Parameters
742742
None
743743

744744
#### Returns
745-
nothing
745+
1 on request, 0 on no request
746746

747747
### `modbusServer.end()`
748748

0 commit comments

Comments
 (0)