etwmc / Personal-HomeKit-HAP

This project will provide source code to build a HomeKit support accessories.
MIT License
236 stars 85 forks source link

statusCode is uninitialized in handleAccessory in PHKAccessory.cpp #55

Closed steveb48 closed 8 years ago

steveb48 commented 8 years ago

Hi, I've gotten much farther with your new drop. I had a problem with statusCode being used in the while loop in handleAccessory before it was initialized. I just changed the declaration to int statusCode = 0;

and now I'm getting events processed. Thanks, Steve

etwmc commented 8 years ago

Duly noted, and the code has been updated. What kind of compiler did you use? Because I thought int init to 0 is a part of C99 Thanks

steveb48 commented 8 years ago

MacBook Pro. This was keeping me from going through the loop once. All running now. thanks Steve