-
Notifications
You must be signed in to change notification settings - Fork 62
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
Version 1.1.0 breaks Serial.available() #52
Comments
There is something else wrong as I have just copied your code and tried it and works using setup
Standard serial Debug setup (menu item "Tools -> Serial Output Selection : PC") I see continual 'b' written to serial output until a character is sent to the board then continual 'a' Also using one of my standard test functions testdefines in What board are you using for Arduino pin of 14 or 15 ? |
Also your code OK on XMC1300 Boot Kit That is the extent of current boards I have here |
Sorry forgot to mentioned that:
Pin 14 and 15 are the two LEDs on the board. |
At the moment I cannot see what is wrong as works fine on two boards I have here. You might want to use built-in defines for LED pins on XMC2Go they are LED1 and LED2 to make code easier to read. For other info that might help see my wiki as well as one here https://github.com/techpaul/XMC-for-Arduino/wiki Normally when checking Serial.available I use
To avoid issues on some other manufacturers boards where their implementation returns a signed integer. Other suggestion is to save Serial.available result to a variable and print it out as well |
Thanks for the link. I wasn't aware of the defines 😉 I'll stick to XMC-for-Arduino V1.0.6 for the moment. Thanks for your help! |
hi sehraf, there was a wrong input source set for the rx pin. I fixed it within #53. BR |
Dear sehraf, Thank you very much for this report. As my colleague Moritz could fix it, I will merge it and include it in the next release. If you need more help, please let us know. @techpaul: Thank you very much for supporting here proactively Have a nice weekend and best regards, Manuel |
You're welcome! |
You're welcome, no problem! Let us know if you need more help. Thank you very much, Manuel |
It's working again! |
Glad to hear that, puts hands up to say sorry it was one of my patches that caused that to fail on looking at changes. Sorry for causing you hassles |
Since version 1.1.0 Serial.available() will always return 0.
After updating my code stopped working. I figured out that Serial.available() causes the problems since it won't return something != 0.
The following code will never send 'a':
Downgrading to 1.0.6 makes it work again and upgrading to 1.1.0 breaks it again.
The text was updated successfully, but these errors were encountered: