Skip to content

Commit 738fd70

Browse files
committed
DEV-197 #time 5m adding get method for Shimmer charging status
1 parent e918ff5 commit 738fd70

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/driverUtilities/ShimmerBattStatusDetails.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ else if((mChargingStatusRaw & 0xFF) == CHARGING_STATUS_BYTE.UNKNOWN) {
135135
}
136136
}
137137

138+
public CHARGING_STATUS getChargingStatus() {
139+
return mChargingStatus;
140+
}
141+
138142
public static double adcValToBattVoltage(int adcVal){
139143
double calibratedData = SensorADC.calibrateU12AdcValueToMillivolts(adcVal, 0.0, 3.0, 1.0);
140144
double battVoltage = ((calibratedData * 1.988)) / 1000; // 1.988 is due to components on the Shimmmer, 1000 is to convert to volts

0 commit comments

Comments
 (0)