Skip to content
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

@Changed-Daily

Description

@Changed-Daily

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy