Skip to content

Commit 0279bfb

Browse files
authored
Correct return value documentation
1 parent 12c32ce commit 0279bfb

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
@@ -730,14 +730,14 @@ Poll for requests
730730
#### Syntax
731731

732732
```
733-
virtual void poll() = 0;
733+
virtual int poll() = 0;
734734
```
735735

736736
#### Parameters
737737
None
738738

739739
#### Returns
740-
nothing
740+
1 on request, 0 on no request
741741

742742
### `modbusServer.end()`
743743

0 commit comments

Comments
 (0)