diff options
| author | Damien George <damien@micropython.org> | 2021-06-23 14:37:33 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-06-23 16:11:37 +1000 |
| commit | 63b8b796103327cdaf61936ef25046a696e92db6 (patch) | |
| tree | 5c34a707f5e0863eb5a0e2e82b61cfb0261e839e /docs | |
| parent | 6ed5b843cf55a96156328b08b011ba919af22fb4 (diff) | |
stm32/usb: Make irq's default trigger enable all events.
Following how other .irq() methods work on other objects.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/library/pyb.USB_VCP.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/library/pyb.USB_VCP.rst b/docs/library/pyb.USB_VCP.rst index 1e44e53fd..1cca8dcad 100644 --- a/docs/library/pyb.USB_VCP.rst +++ b/docs/library/pyb.USB_VCP.rst @@ -109,7 +109,7 @@ Methods Return value: number of bytes sent. -.. method:: USB_VCP.irq(handler=None, trigger=0, hard=False) +.. method:: USB_VCP.irq(handler=None, trigger=IRQ_RX, hard=False) Register *handler* to be called whenever an event specified by *trigger* occurs. The *handler* function must take exactly one argument, which will |
