Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial readUntil not working as expected #480

Open
martinwork opened this issue Mar 26, 2021 · 0 comments
Open

serial readUntil not working as expected #480

martinwork opened this issue Mar 26, 2021 · 0 comments

Comments

@martinwork
Copy link
Contributor

With the code

    while (1) {
        ManagedString in = uBit.serial.readUntil(":");
        ManagedString out = "|" + in + "#\n";
        uBit.serial.send(out);
        uBit.sleep(100);
    }

sending ab:cd:ef:, V2 works as expected, returning

|ab#
|cd#
|ef#

but V1 returns

|ab:c#
|#
|ef#

Sample source and hex files
serial-readuntil.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant