Some disabled logs for testing (disabled because they're noisy).
This commit is contained in:
parent
5d1e4c85fe
commit
8ea8070d51
@ -121,7 +121,7 @@ void SMX::SMXDeviceConnection::HandleUsbPacket(const string &buf)
|
|||||||
{
|
{
|
||||||
if(buf.empty())
|
if(buf.empty())
|
||||||
return;
|
return;
|
||||||
// Log(ssprintf("Read: %s\n", BinaryToHex(buf).c_str()));
|
// Log(ssprintf("Read: %s", BinaryToHex(buf).c_str()));
|
||||||
|
|
||||||
int iReportId = buf[0];
|
int iReportId = buf[0];
|
||||||
switch(iReportId)
|
switch(iReportId)
|
||||||
@ -296,6 +296,7 @@ void SMX::SMXDeviceConnection::CheckWrites(wstring &error)
|
|||||||
// first, unlike reads which might already be buffered), and there's no way to test it if we implement that,
|
// first, unlike reads which might already be buffered), and there's no way to test it if we implement that,
|
||||||
// so this assumes all writes are async.
|
// so this assumes all writes are async.
|
||||||
DWORD unused;
|
DWORD unused;
|
||||||
|
// Log(ssprintf("Write: %s", BinaryToHex(pPacket->sData).c_str()));
|
||||||
if(!WriteFile(m_hDevice->value(), pPacket->sData.data(), pPacket->sData.size(), &unused, &pPacket->m_OverlappedWrite))
|
if(!WriteFile(m_hDevice->value(), pPacket->sData.data(), pPacket->sData.size(), &unused, &pPacket->m_OverlappedWrite))
|
||||||
{
|
{
|
||||||
int windows_error = GetLastError();
|
int windows_error = GetLastError();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user