stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
425 stars 346 forks source link

fix FD_ISSET bool issue #76

Closed fab0301 closed 5 years ago

fab0301 commented 5 years ago

I wasn't able to connect to the HTTP server. After digging in the code, I found that bool bRead/bWrite = FD_ISSET(...) was not set correctly (within httpd.c). Even though FD_ISSET returned a value > 0, bRead was set to false. By defining FD_ISSET_BOOL returning a shifted FD_ISSET, bRead/bWrite is set correctly.