cast for size_t!

This commit is contained in:
ladyada 2016-07-13 13:33:15 -04:00
parent ecc300d7a3
commit 5df5ea2f1c

View File

@ -129,7 +129,7 @@ class Adafruit_MQTT_CC3000 : public Adafruit_MQTT {
bool sendPacket(uint8_t *buffer, uint16_t len) {
if (mqttclient.connected()) {
uint16_t ret = mqttclient.write(buffer, len);
uint16_t ret = mqttclient.write(buffer, (size_t)len);
DEBUG_PRINT(F("sendPacket returned: ")); DEBUG_PRINTLN(ret);
if (ret != len) {
DEBUG_PRINTLN("Failed to send complete packet.")