Re: Problem sending data over to serial port
Are you entering integer values into the textedit? i.e. 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19, 20,21? If so, you should be converting to integer using base 10, which is the default for QString::toInt. Your code above is treating your input as hex values, not integer.
For your code to work as shown, you'd need to be entering hex values: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10,11,12,13,14,15.
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks