1
0

apparently unsigned ints hate that

This commit is contained in:
2019-03-16 19:12:42 -04:00
parent fbabccd804
commit c37230f828

View File

@@ -216,12 +216,13 @@ void setWait(char data[], uint16_t len){
wait += (char)data[index];
}
uint16_t wait_int = wait.toInt();
if (wait_int > -1 && wait_int < 10000){
if (wait_int >= 0 && wait_int < 10000){
strip.wait = wait_int;
Serial.println(F("strip.wait set to "));
Serial.print(wait_int);
Serial.print(F("strip.wait set to "));
Serial.println(wait_int);
} else {
Serial.println(F("Speed is out of the allowed range"));
Serial.print(F("Speed delay is out of the allowed range (0-10,000): "));
Serial.println(wait_int);
}
}