debevv / nanoMODBUS

A compact MODBUS RTU/TCP C library for embedded/microcontrollers
MIT License
282 stars 58 forks source link

Fix a bug where a HANDLE pointer is used instead of HANDLE. #46

Closed m-rashvand closed 6 months ago

m-rashvand commented 6 months ago

Addressed a minor bug in the win32 example. Both INVALID_HANDLE_VALUE and CloseHandle require a HANDLE instead of a HANDLE*, as outlined in the Win32 handleapi documentation. also removed the unused variable 'TimedOut'.

debevv commented 6 months ago

Thank you