repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: refresh device statuses by default
[deb_libcec.git]
/
src
/
lib
/
platform
/
windows
/
serialport.cpp
diff --git
a/src/lib/platform/windows/serialport.cpp
b/src/lib/platform/windows/serialport.cpp
index de2a9a394171f8c60367038cac90592953223afd..b028ff32e5e8810f5bb01bcb70cf8aa2810722db 100644
(file)
--- a/
src/lib/platform/windows/serialport.cpp
+++ b/
src/lib/platform/windows/serialport.cpp
@@
-166,14
+166,14
@@
void CSerialPort::Close(void)
}
}
}
}
-int8_t CSerialPort::Write(
const cec_adapter_message &
data)
+int8_t CSerialPort::Write(
CCECAdapterMessagePtr
data)
{
CLockObject lock(&m_mutex);
DWORD iBytesWritten = 0;
if (!m_bIsOpen)
return -1;
{
CLockObject lock(&m_mutex);
DWORD iBytesWritten = 0;
if (!m_bIsOpen)
return -1;
- if (!WriteFile(m_handle, data
.packet.data, data.
size(), &iBytesWritten, NULL))
+ if (!WriteFile(m_handle, data
->packet.data, data->
size(), &iBytesWritten, NULL))
{
m_error = "Error while writing to COM port";
FormatWindowsError(GetLastError(), m_error);
{
m_error = "Error while writing to COM port";
FormatWindowsError(GetLastError(), m_error);