[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Speed up calendar fetch by not restarting note fetch
From: |
Keith Packard |
Subject: |
[PATCH] Speed up calendar fetch by not restarting note fetch |
Date: |
Sun, 8 Jul 2007 21:32:59 -0700 |
---
common/phones/nk6510.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 6259dd5..59078f3 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -2862,9 +2862,12 @@ static gn_error NK6510_GetCalendarNotesInfo(gn_data
*data, struct gn_statemachin
0x00};
gn_error error;
- data->calnote_list->location[0] = 0;
+#if 0
/* Be sure it is 0 */
data->calnote_list->last = 0;
+#endif
+ if (!data->calnote_list->last)
+ data->calnote_list->location[0] = 0;
do {
dprintf("Read %d of %d calendar entries\n",
data->calnote_list->last, data->calnote_list->number);
req[8] = data->calnote_list->location[LAST_INDEX] / 256;
--
1.5.2.2
- Fixes to avoid locking up 6131 phone and send more useful data, Keith Packard, 2007/07/09
- [PATCH] When processing incoming phone book messages, skip unrelated errors., Keith Packard, 2007/07/09
- [PATCH] Limit phonebook to 1000 entries (as on 6131), Keith Packard, 2007/07/09
- [PATCH] Account for phonebook blocks not sent due to limited packet space, Keith Packard, 2007/07/09
- [PATCH] Support termination of repeating events, Keith Packard, 2007/07/09
- [PATCH] Speed up calendar fetch by not restarting note fetch,
Keith Packard <=
- [PATCH] Delete message when write fails, Keith Packard, 2007/07/09
- [PATCH] Avoid duplicate phone and address entries, Keith Packard, 2007/07/09
- [PATCH] treat Postal entries as addresses, Keith Packard, 2007/07/09
- [PATCH] Set of address blocks counts as one data block., Keith Packard, 2007/07/09
- Re: [Opensync-users] [PATCH] treat Postal entries as addresses, Pawel Kot, 2007/07/09
- Re: [Opensync-users] [PATCH] Avoid duplicate phone and address entries, Pawel Kot, 2007/07/09
- Re: [Opensync-users] [PATCH] Avoid duplicate phone and address entries, Keith Packard, 2007/07/09
- Re: [Opensync-users] [PATCH] Avoid duplicate phone and address entries, Pawel Kot, 2007/07/09
- Re: [Opensync-users] [PATCH] Delete message when write fails, Pawel Kot, 2007/07/09
- Re: [Opensync-users] [PATCH] Delete message when write fails, Keith Packard, 2007/07/09