Thanks to visit codestin.com
Credit goes to github.com

Skip to content

If i use WHILE (1), waiting for the serial port data will cause blocking, how to solve this problem? #140

@zhang402368157

Description

@zhang402368157

If i use WHILE (1), waiting for the serial port data will cause blocking, how to solve this problem?

Attached code:
while(1)
do

str = uart.getchar( 0 )

if(str == '\a')
then
break
else
uart.write( 0, str)
end

end

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