Initial project commit

This commit is contained in:
2020-07-18 21:44:27 -04:00
parent 8a1141b373
commit fea891a268
127 changed files with 20838 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package com.eveningoutpost.dexdrip.G5Model;
/**
* Created by joeginley on 3/28/16.
*/
public enum TransmitterStatus {
UNKNOWN, BRICKED, LOW, OK;
public static TransmitterStatus getBatteryLevel(int b) {
if (b > 0x81) {
return BRICKED;
}
else {
if (b == 0x81) {
return LOW;
}
else if (b == 0x00) {
return OK;
}
else {
return UNKNOWN;
}
}
}
}