gnokii-users
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]