--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Subject: |
confirm 12fc20161e645e46e9c4552b1aee67addd496cf0 |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---