Fix comparison between signed and unsigned warning in StringLength example

Fixes:
warning: comparison between signed and unsigned integer expressions
compiler warning.

Closes https://github.com/arduino/Arduino/issues/693 (in conjunction with https://github.com/arduino/Arduino/issues/6448)
This commit is contained in:
per1234 2017-07-02 03:15:54 -07:00 committed by Cristian Maglie
parent 352df2c15f
commit c5d4e5fc0f
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
*/
String txtMsg = ""; // a string for incoming text
int lastStringLength = txtMsg.length(); // previous length of the String
unsigned int lastStringLength = txtMsg.length(); // previous length of the String
void setup() {
// Open serial communications and wait for port to open: