mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
avrdude: Fix: Stray winsock usage on Windows
This commit is contained in:
@@ -311,8 +311,10 @@ static int ser_open(char * port, union pinfo pinfo, union filedescriptor *fdp)
|
||||
static void ser_close(union filedescriptor *fd)
|
||||
{
|
||||
if (serial_over_ethernet) {
|
||||
#ifdef HAVE_LIBWS2_32
|
||||
closesocket(fd->ifd);
|
||||
WSACleanup();
|
||||
#endif
|
||||
} else {
|
||||
HANDLE hComPort=(HANDLE)fd->pfd;
|
||||
if (hComPort != INVALID_HANDLE_VALUE)
|
||||
|
||||
Reference in New Issue
Block a user