Merge pull request #618 from Brandon2255p/patch-1

Removed an unused variable
This commit is contained in:
Nick O'Leary 2019-05-22 14:58:57 +01:00 committed by GitHub
commit d2ff771f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,7 +453,6 @@ boolean PubSubClient::beginPublish(const char* topic, unsigned int plength, bool
// Send the header and variable length field
uint16_t length = MQTT_MAX_HEADER_SIZE;
length = writeString(topic,buffer,length);
uint16_t i;
uint8_t header = MQTTPUBLISH;
if (retained) {
header |= 1;