Fixing compiler warnings exposed with -Wall and -Wextra: qos can't be less than zero. (#274)

This commit is contained in:
Trygve Laugstøl
2018-02-22 18:29:44 -08:00
committed by Nick O'Leary
parent bb101c58e8
commit f029640ee6
+1 -1
View File
@@ -468,7 +468,7 @@ boolean PubSubClient::subscribe(const char* topic) {
}
boolean PubSubClient::subscribe(const char* topic, uint8_t qos) {
if (qos < 0 || qos > 1) {
if (qos > 1) {
return false;
}
if (MQTT_MAX_PACKET_SIZE < 9 + strlen(topic)) {