From 194b1be516e2dd47199ea35b3f3b30b1b791c5a4 Mon Sep 17 00:00:00 2001 From: Thomas Krebs Date: Mon, 31 Aug 2015 11:08:39 +0200 Subject: [PATCH] removed compiler warning by changing type for cmd in processMQTTMessage --- .../MySensors/examples/MQTTClientGateway/MQTTClientGateway.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/MySensors/examples/MQTTClientGateway/MQTTClientGateway.ino b/libraries/MySensors/examples/MQTTClientGateway/MQTTClientGateway.ino index a1c07c9..9c5b60b 100644 --- a/libraries/MySensors/examples/MQTTClientGateway/MQTTClientGateway.ino +++ b/libraries/MySensors/examples/MQTTClientGateway/MQTTClientGateway.ino @@ -445,7 +445,7 @@ void processMQTTMessage(char* topic, byte* payload, uint8_t i = 0; buffer[0] = 0; buffsize = 0; - uint8_t cmd = -1; + int8_t cmd = -1; for (str = strtok_r(topic, "/", &p); str && i < 5; str = strtok_r(NULL, "/", &p))