Skip to content

Commit

Permalink
Fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanrajaratnam committed Sep 27, 2022
1 parent 42cc95c commit 71dd487
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package no.nordicsemi.android.mesh.transport;

import androidx.annotation.NonNull;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import no.nordicsemi.android.mesh.logger.MeshLogger;
import no.nordicsemi.android.mesh.opcodes.ApplicationMessageOpCodes;
import no.nordicsemi.android.mesh.utils.MeshAddress;
Expand Down Expand Up @@ -59,7 +55,7 @@ public int getOpCode() {
*
* @return battery level
*/
public byte getBatteryLevel() {
public int getBatteryLevel() {
return mBatteryLevel;
}

Expand Down Expand Up @@ -87,7 +83,7 @@ public int getTimeToCharge() {
*
* @return battery flags
*/
public byte getFlags() {
public int getFlags() {
return mFlags;
}

Expand Down Expand Up @@ -136,7 +132,7 @@ public enum BatteryPresence {
NOT_REMOVABLE(0b10),
UNKNOWN(0b11);

private int flag;
private final int flag;
//Constructor to initialize the instance variable
BatteryPresence(int flag) {
this.flag = flag;
Expand Down Expand Up @@ -164,7 +160,7 @@ public enum BatteryIndicator {
GOOD(0b10),
UNKNOWN(0b11);

private int flag;
private final int flag;
//Constructor to initialize the instance variable
BatteryIndicator(int flag) {
this.flag = flag;
Expand Down Expand Up @@ -193,7 +189,7 @@ public enum BatteryChargingState {
CHARGING(0b10),
UNKNOWN(0b11);

private int flag;
private final int flag;
//Constructor to initialize the instance variable
BatteryChargingState(int flag) {
this.flag = flag;
Expand Down Expand Up @@ -221,7 +217,7 @@ public enum BatteryServiceability {
SERVICE_REQUIRED(0b10),
UNKNOWN(0b11);

private int flag;
private final int flag;
//Constructor to initialize the instance variable
BatteryServiceability(int flag) {
this.flag = flag;
Expand Down

0 comments on commit 71dd487

Please sign in to comment.