Fix EOL
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26230 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,35 +1,35 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
||||||
*
|
*
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
#include "BluetoothServer.h"
|
#include "BluetoothServer.h"
|
||||||
#include "HCITransportAccessor.h"
|
#include "HCITransportAccessor.h"
|
||||||
#include "Output.h"
|
#include "Output.h"
|
||||||
|
|
||||||
HCITransportAccessor::HCITransportAccessor(BPath* path) : HCIDelegate(path)
|
HCITransportAccessor::HCITransportAccessor(BPath* path) : HCIDelegate(path)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
HCITransportAccessor::IssueCommand(raw_command rc, size_t size)
|
HCITransportAccessor::IssueCommand(raw_command rc, size_t size)
|
||||||
{
|
{
|
||||||
if (GetID() < 0 || fFD < 0)
|
if (GetID() < 0 || fFD < 0)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
printf("### Command going: len = %ld\n", size);
|
printf("### Command going: len = %ld\n", size);
|
||||||
for (uint16 index = 0 ; index < size; index++ ) {
|
for (uint16 index = 0 ; index < size; index++ ) {
|
||||||
printf("%x:",((uint8*)rc)[index]);
|
printf("%x:",((uint8*)rc)[index]);
|
||||||
}
|
}
|
||||||
printf("### \n");
|
printf("### \n");
|
||||||
|
|
||||||
|
|
||||||
return ioctl(fFD, ISSUE_BT_COMMAND, rc, size);
|
return ioctl(fFD, ISSUE_BT_COMMAND, rc, size);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user