测试getInt锁住的问题

liuguijing 1 month ago
parent 362a23f58d
commit b41dc44246

@ -459,6 +459,9 @@ public class MicroPhotoService extends Service {
private void ProcessReceivedAction(final Context context, final Intent intent) { private void ProcessReceivedAction(final Context context, final Intent intent) {
String action = intent.getAction(); String action = intent.getAction();
infoLog("MpApp验证电压读取的问题开始");
int gpioInt = getGpioInt(117);
infoLog("MpApp验证电压读取的问题结束:" + gpioInt);
if (TextUtils.equals(ACTION_HEARTBEAT, action)) { if (TextUtils.equals(ACTION_HEARTBEAT, action)) {
long ts = System.currentTimeMillis(); long ts = System.currentTimeMillis();
long expectedHbTime = intent.getLongExtra("HeartbeatTime", ts); long expectedHbTime = intent.getLongExtra("HeartbeatTime", ts);

@ -171,7 +171,7 @@ public class MpMasterService extends Service {
@Override @Override
public IBinder onBind(Intent intent) { public IBinder onBind(Intent intent) {
// TODO: Return the communication channel to the service. // TODO: Return the communication channel to the service.
// throw new UnsupportedOperationException("Not yet implemented"); throw new UnsupportedOperationException("Not yet implemented");
} }
@Override @Override
@ -658,6 +658,10 @@ public class MpMasterService extends Service {
public void processAction(final Context context, final Intent intent) { public void processAction(final Context context, final Intent intent) {
String action = intent.getAction(); String action = intent.getAction();
mService.logger.info("测试读取电压开始:");
String batteryVoltage = getBatteryVoltage();
mService.logger.info("测试读取电压结束:"+batteryVoltage);
if (TextUtils.equals(ACTION_HEARTBEAT, action)) { if (TextUtils.equals(ACTION_HEARTBEAT, action)) {
boolean keepAlive = intent.getBooleanExtra("keepAlive", false); boolean keepAlive = intent.getBooleanExtra("keepAlive", false);
if (keepAlive) { if (keepAlive) {

Loading…
Cancel
Save