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

MSP432 Serial.available() always returns "1" #20

Open
robertinant opened this issue Aug 29, 2016 · 0 comments
Open

MSP432 Serial.available() always returns "1" #20

robertinant opened this issue Aug 29, 2016 · 0 comments

Comments

@robertinant
Copy link
Member

From @croberts15 on November 3, 2015 15:48

I am trying to interface a WiFi peripheral communicating with AT commands over UART and I am getting incorrect messages. Trying to debug shows that Serial.available() always returned 1. I tried running simple code that would just run Serial.available() on the COM window:

 while(Serial.available()){
    Serial.print("Serial.available() = ");
    Serial.println(Serial.available());
   cpuIn = Serial.read();
}

and again, Serial.available returned 1, even if I entered a long string of values. If I ran this same code on a msp4305529, the serial.available() value would max out at 15 and decrement to zero as I read off the buffer.

Copied from original issue: energia/Energia#755

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

No branches or pull requests

1 participant