private void initWearData() { if (JoH.ratelimit("watch_init_wear_data", 120)) { wear_integration = mPrefs.getBoolean("wear_sync", false); if (wear_integration) {//is_using_bt Log.d(TAG, "***initWearData***"); sendSensorData(); sendActiveBtDeviceData(); sendAlertTypeData(); if (mPrefs.getBoolean("show_wear_treatments", false)) { initWearTreatments(); } else { sendWearCalibrationData(sendCalibrationCount); sendWearBgData(sendBgCount); } sendData();//ensure BgReading.Last is displayed on watch } else { Log.d(TAG, "Skip initWearData as wear integration is disabled"); } } else Log.d(TAG, "Skip initWearData due to exceeding ratelimit"); }
private void initWearData() { if (JoH.ratelimit("watch_init_wear_data", 120)) { wear_integration = mPrefs.getBoolean("wear_sync", false); if (wear_integration) {//is_using_bt Log.d(TAG, "***initWearData***"); sendSensorData(); sendActiveBtDeviceData(); sendAlertTypeData(); if (mPrefs.getBoolean("show_wear_treatments", false)) { initWearTreatments(); } else { sendWearCalibrationData(sendCalibrationCount); sendWearBgData(sendBgCount); } sendData();//ensure BgReading.Last is displayed on watch } else { Log.d(TAG, "Skip initWearData as wear integration is disabled"); } } else Log.d(TAG, "Skip initWearData due to exceeding ratelimit"); }
} else if (ACTION_SYNC_ALERTTYPE.equals(action)) {//KS Log.d(TAG, "onStartCommand Action=" + ACTION_SYNC_ALERTTYPE + " Path=" + WEARABLE_ALERTTYPE_DATA_PATH); sendAlertTypeData(); } else if (ACTION_SYNC_CALIBRATION.equals(action)) {//KS Log.d(TAG, "onStartCommand Action=" + ACTION_SYNC_CALIBRATION + " Path=" + WEARABLE_CALIBRATION_DATA_PATH);
} else if (ACTION_SYNC_ALERTTYPE.equals(action)) {//KS Log.d(TAG, "onStartCommand Action=" + ACTION_SYNC_ALERTTYPE + " Path=" + WEARABLE_ALERTTYPE_DATA_PATH); sendAlertTypeData(); } else if (ACTION_SYNC_CALIBRATION.equals(action)) {//KS Log.d(TAG, "onStartCommand Action=" + ACTION_SYNC_CALIBRATION + " Path=" + WEARABLE_CALIBRATION_DATA_PATH);