This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
UART.Sendbreak #280
Closed
Description
Pycom board: OEM module W01.
Firmware: (sysname='WiPy', nodename='WiPy', release='1.20.0.rc7', version='v1.9.4-2833cf5 on 2019-02-08', machine='WiPy with ESP32')
Code to reproduce issue:
from machine import UART
#-----------------------------------------------------------------------------------------#
uart = None
#-----------------------------------------------------------------------------------------#
def uart_initialise():
global uart
if(uart == None):
uart = UART(1, 57600)
uart.init(57600, bits=8, parity=None, stop=1)
return
#-----------------------------------------------------------------------------------------#
def send_break():
global uart
if(uart != None):
uart.sendbreak()
return
Expected output:
First call to uart_initialise() then send_break().
Break sent from UART port when send_break() is called.
Actual output:
When uart.sendbreak() is executed:
TypeError: function takes 2 positional arguments but 1 were given
Metadata
Metadata
Assignees
Labels
No labels