Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2149)

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 1941923002: bluetooth: Return int8_t and use -128 for unknown tx power. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar fixes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index c3d6d1d154dfc5bb6ec9ab61995de7ffc31f34e6..dabaab4b72fe29ccdedf91526973c4e16010c4df 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -145,13 +145,13 @@ BluetoothDevice::UUIDList BluetoothLowEnergyDeviceMac::GetUUIDs() const {
advertised_uuids_.end());
}
-int16_t BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
- return kUnknownPower;
+int8_t BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
+ return kUnknownRSSI;
}
-int16_t BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const {
+int8_t BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const {
NOTIMPLEMENTED();
- return kUnknownPower;
+ return kUnknownTxPower;
}
bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const {

Powered by Google App Engine
This is Rietveld 408576698