Add space for '\0'

ReceiveThreadFunction receives max 1024 bytes and then adds '\0' to it, so the buffer needs to be 1025 chars.
This commit is contained in:
Mark Hermeling 2024-11-07 11:51:50 -05:00 committed by Adam Honse
parent 27a37f65ea
commit 7d37ec60b9

View file

@ -173,7 +173,7 @@ void PhilipsWizController::SetScene(int scene, unsigned char brightness)
void PhilipsWizController::ReceiveThreadFunction()
{
char recv_buf[1024];
char recv_buf[1025];
while(ReceiveThreadRun.load())
{