Skip to content

Commit 115f413

Browse files
projectgusdpgeorge
authored andcommitted
docs/library/network.PPP: Document the optional poll() argument.
This argument isn't expected to be passed from Python code, but - as pointed out - it doesn't make sense how the irq() mechanism works otherwise. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 3ca2722 commit 115f413

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/library/network.PPP.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,15 @@ Methods
9090

9191
See `AbstractNIC.ifconfig`.
9292

93-
.. method:: PPP.poll()
93+
.. method:: PPP.poll([irq_arg])
9494

9595
Poll the underlying stream for data, and pass it up the PPP stack.
9696
This is called automatically if the stream is a UART with a RXIDLE interrupt,
9797
so it's not usually necessary to call it manually.
9898

99+
The optional *irq_arg* argument is ignored, this argument exists only so this
100+
function is compatible with the :func:`machine.UART.irq` *handler* argument.
101+
99102
Constants
100103
---------
101104

0 commit comments

Comments
 (0)