Quantcast
Viewing all articles
Browse latest Browse all 63798

Forum Post: RE: UART

[quote user="Ankush Khare85"]What is wrong in my program ?[/quote] This is one of the most annoying questions one programmer can ask to another. So you expect us to debug your program and provide working solution? I am afraid that this is not how it works here. There's no indication that you even tried. As Charles already noted - your code have syntax error, thus it does not even compile. Some but not all "problems" with your code and it's presentation: You do not specify how much data is in the array rx_buffer[] after receive() call. If it is single value then why do you need array for 8 values? If it is more than single value then why do you try to output on terminal just single character? BTW your function refers to undefined variable val. Where it is defined and how it is assigned?

Viewing all articles
Browse latest Browse all 63798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>