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:
parent
352df2c15f
commit
c5d4e5fc0f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user