Merge pull request #5770 from andreapede/patch-1

Missing the end pointer reference solves #5760
This commit is contained in:
Theo Arends 2019-05-13 10:33:16 +01:00 committed by GitHub
commit 63f5429d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
* Extend PWM resolution from 8 to 10 bits for low brightness lights * Extend PWM resolution from 8 to 10 bits for low brightness lights
* Allow all 5 PWM channels individually adressable with LEDs. (#5741) * Allow all 5 PWM channels individually adressable with LEDs. (#5741)
* Fixed inversion of WC/WW channels, back to RGBCW * Fixed inversion of WC/WW channels, back to RGBCW
* Fixed the Unescape() function and the SendSerial3 behaviour
* *
* 6.5.0.8 20190413 * 6.5.0.8 20190413
* Add Tuya Dimmer 10 second heartbeat serial packet required by some Tuya dimmer secondary MCUs * Add Tuya Dimmer 10 second heartbeat serial packet required by some Tuya dimmer secondary MCUs

View File

@ -353,7 +353,7 @@ char* Unescape(char* buffer, uint16_t* size)
} }
} }
*size = end_size; *size = end_size;
*write++ = 0; // add the end string pointer reference
// AddLogBuffer(LOG_LEVEL_DEBUG, (uint8_t*)buffer, *size); // AddLogBuffer(LOG_LEVEL_DEBUG, (uint8_t*)buffer, *size);
return buffer; return buffer;