From 953365323e977ebc0c459c6efde4bfc5a327356b Mon Sep 17 00:00:00 2001 From: Ang Li Date: Thu, 5 Oct 2017 10:10:12 -0700 Subject: Fix a misuse of enum in Ble scan record. (#86) * Don't use advertising enum for scan record. --- .../google/android/mobly/snippet/bundled/utils/JsonSerializer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/com/google') diff --git a/src/main/java/com/google/android/mobly/snippet/bundled/utils/JsonSerializer.java b/src/main/java/com/google/android/mobly/snippet/bundled/utils/JsonSerializer.java index 7e5ca5b..ef7f7d7 100644 --- a/src/main/java/com/google/android/mobly/snippet/bundled/utils/JsonSerializer.java +++ b/src/main/java/com/google/android/mobly/snippet/bundled/utils/JsonSerializer.java @@ -185,9 +185,7 @@ public class JsonSerializer { private Bundle serializeBleScanRecord(ScanRecord record) { Bundle result = new Bundle(); result.putString("DeviceName", record.getDeviceName()); - result.putString( - "TxPowerLevel", - MbsEnums.BLE_ADVERTISE_TX_POWER.getString(record.getTxPowerLevel())); + result.putInt("TxPowerLevel", record.getTxPowerLevel()); return result; } -- cgit v1.2.3