Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix use of deprecated APIs in IOdarwin.mm.
  • Loading branch information
comex committed Sep 2, 2013
1 parent 403744d commit 1865275
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Core/Core/Src/HW/WiimoteReal/IOdarwin.mm
Expand Up @@ -22,8 +22,8 @@ - (void) deviceInquiryDeviceFound: (IOBluetoothDeviceInquiry *) sender
device: (IOBluetoothDevice *) device
{
NOTICE_LOG(WIIMOTE, "Discovered bluetooth device at %s: %s",
[[device getAddressString] UTF8String],
[[device getName] UTF8String]);
[[device addressString] UTF8String],
[[device name] UTF8String]);

if ([[sender foundDevices] count] == maxDevices)
[sender stop];
Expand All @@ -38,7 +38,7 @@ - (void) l2capChannelData: (IOBluetoothL2CAPChannel *) l2capChannel
data: (unsigned char *) data
length: (NSUInteger) length
{
IOBluetoothDevice *device = [l2capChannel getDevice];
IOBluetoothDevice *device = [l2capChannel device];
WiimoteReal::Wiimote *wm = NULL;

std::lock_guard<std::recursive_mutex> lk(WiimoteReal::g_refresh_lock);
Expand Down Expand Up @@ -78,7 +78,7 @@ - (void) l2capChannelData: (IOBluetoothL2CAPChannel *) l2capChannel

- (void) l2capChannelClosed: (IOBluetoothL2CAPChannel *) l2capChannel
{
IOBluetoothDevice *device = [l2capChannel getDevice];
IOBluetoothDevice *device = [l2capChannel device];
WiimoteReal::Wiimote *wm = NULL;

std::lock_guard<std::recursive_mutex> lk(WiimoteReal::g_refresh_lock);
Expand Down Expand Up @@ -211,7 +211,7 @@ - (void) l2capChannelClosed: (IOBluetoothL2CAPChannel *) l2capChannel
[cchan retain];

NOTICE_LOG(WIIMOTE, "Connected to wiimote %i at %s",
index + 1, [[btd getAddressString] UTF8String]);
index + 1, [[btd addressString] UTF8String]);

m_connected = true;

Expand Down

0 comments on commit 1865275

Please sign in to comment.