统一使用总线电压

ptz
Matthew 4 months ago
parent e66667eb11
commit 148ce5cb57

@ -1060,7 +1060,7 @@ public class MpMasterService extends Service {
public static String getBatteryVoltage() { public static String getBatteryVoltage() {
int val = 0; int val = 0;
for (int idx = 0; idx < 3; idx++) { for (int idx = 0; idx < 3; idx++) {
val = MpMasterService.getInt(115); val = MpMasterService.getInt(117);
if (val > 0) { if (val > 0) {
return Integer.toString(val / 1000) + "." + Integer.toString((val % 1000) / 100); return Integer.toString(val / 1000) + "." + Integer.toString((val % 1000) / 100);
} }

Loading…
Cancel
Save