diff options
Diffstat (limited to 'src/main/java/com/google/android/mobly/snippet/bundled/utils/JsonSerializer.java')
-rw-r--r-- | src/main/java/com/google/android/mobly/snippet/bundled/utils/JsonSerializer.java | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |