1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

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

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: