优化心跳周期控制

nx2024TEMP
Matthew 6 months ago
parent 059c90cfb0
commit d795d35fd5

@ -608,7 +608,7 @@ public class MicroPhotoService extends Service {
nextPhotoTime *= 1000; nextPhotoTime *= 1000;
if (nextPhotoTime > ts) { if (nextPhotoTime > ts) {
mHeartbeatDuration = duration; mHeartbeatDuration = duration;
registerHeartbeatTimer((int) ((nextPhotoTime - ts) % duration) + 999); registerHeartbeatTimer((int) ((nextPhotoTime - ts) % duration));
} else { } else {
mHeartbeatDuration = duration; mHeartbeatDuration = duration;

Loading…
Cancel
Save