|
|
@ -530,7 +530,15 @@ public class MicroPhotoService extends Service {
|
|
|
|
if (channel == 0x200)
|
|
|
|
if (channel == 0x200)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Heartbeat
|
|
|
|
// Heartbeat
|
|
|
|
infoLog("HB Timer Fired");
|
|
|
|
long expectedHbTime = intent.getLongExtra("HeartbeatTime", ts);
|
|
|
|
|
|
|
|
infoLog("HB Timer Fired ACTION=" + action + " ExpTS=" + Long.toString(expectedHbTime));
|
|
|
|
|
|
|
|
Runnable runnable = new Runnable() {
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
mService.sendHeartbeat(mService.mNativeHandle, mService.getSignalLevel());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
Thread th = new Thread(runnable);
|
|
|
|
|
|
|
|
th.start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (channel >= 256)
|
|
|
|
else if (channel >= 256)
|
|
|
|
{
|
|
|
|
{
|
|
|
|