From f626934b2115cfbeb18fb372ac340c47848da443 Mon Sep 17 00:00:00 2001 From: Electric-Blue Date: Mon, 1 Feb 2016 00:03:45 +0300 Subject: Class of device for bluez. --- nimbluez/bluetoothmsbt.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nimbluez/bluetoothmsbt.nim') diff --git a/nimbluez/bluetoothmsbt.nim b/nimbluez/bluetoothmsbt.nim index 35cdb14..ca0edbe 100644 --- a/nimbluez/bluetoothmsbt.nim +++ b/nimbluez/bluetoothmsbt.nim @@ -223,11 +223,11 @@ proc name*(device: BluetoothDeviceRemote): string = return cast[WideCString](addr(buf)) $ BLUETOOTH_MAX_NAME_SIZE -proc classRaw*(device: BluetoothDeviceLocal): uint32 = - ## Returns raw class of remote Bluetooth device. +proc classOfDevice*(device: BluetoothDeviceLocal): uint32 = + ## Returns class of local Bluetooth device. result = device.fRadioInfo.ulClassofDevice -proc classRaw*(device: BluetoothDeviceRemote): uint32 = - ## Returns raw class of remote Bluetooth device. +proc classOfDevice*(device: BluetoothDeviceRemote): uint32 = + ## Returns class of remote Bluetooth device. result = device.fDeviceInfo.ulClassofDevice -- cgit v1.2.3