From 901c026ed629af596c38dae34288f2d5e4dd40f8 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sat, 28 May 2016 23:24:58 -0400 Subject: [PATCH] whitespace and spelling --- src/serialport_win.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/serialport_win.cpp b/src/serialport_win.cpp index faf2bf7..7122c5d 100644 --- a/src/serialport_win.cpp +++ b/src/serialport_win.cpp @@ -79,12 +79,12 @@ void EIO_Open(uv_work_t* req) { DCB dcb = { 0 }; SecureZeroMemory(&dcb, sizeof(DCB)); dcb.DCBlength = sizeof(DCB); - + if (!GetCommState(file, &dcb)) { ErrorCodeToString("GetCommState", GetLastError(), data->errorString); return; } - + if (data->hupcl == false) { dcb.fDtrControl = DTR_CONTROL_DISABLE; // disable DTR to avoid reset } else { @@ -375,7 +375,7 @@ void EIO_Write(uv_work_t* req) { // on the same handle (i.e. ReadFile and WriteFile) ov.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); - // Start write operation - synchrounous or asynchronous + // Start write operation - synchronous or asynchronous DWORD bytesWritten = 0; if (!WriteFile((HANDLE)data->fd, data->bufferData, static_cast(data->bufferLength), &bytesWritten, &ov)) { DWORD lastError = GetLastError();