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" #755

Closed
croberts15 opened this issue Nov 3, 2015 · 1 comment
Closed

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

croberts15 opened this issue Nov 3, 2015 · 1 comment

Comments

@croberts15
Copy link

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.

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

3 participants