gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-41


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-410-g406b573
Date: Sun, 19 Aug 2012 15:13:31 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  406b57361a0e772c30a0bf367ed4599da0849996 (commit)
      from  eb459fafc38b2c913ab9670ca5a724b960ded34c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=406b57361a0e772c30a0bf367ed4599da0849996


commit 406b57361a0e772c30a0bf367ed4599da0849996
Author: Daniele Forsi <address@hidden>
Date:   Sun Aug 19 17:03:59 2012 +0200

    Birthday frames from phonebook are shorter than date frames
    
    Date frames related to phone calls contain also a seconds field and
    a pointer to the subblock containing the phone number involved in
    the call (and two trailing bytes always at zero).

diff --git a/common/nokia-decoding.c b/common/nokia-decoding.c
index 0f0c4e2..6465854 100644
--- a/common/nokia-decoding.c
+++ b/common/nokia-decoding.c
@@ -253,7 +253,14 @@ gn_error phonebook_decode(unsigned char *blockstart, int 
length, gn_data *data,
                        subentry->data.date.day    = blockstart[9];
                        subentry->data.date.hour   = blockstart[10];
                        subentry->data.date.minute = blockstart[11];
-                       subentry->data.date.second = blockstart[12];
+                       /* Birthday frames are shorter */
+                       if (blockstart[3] >= 14) {
+                               subentry->data.date.second = blockstart[12];
+                               /* This is the date of a call from phone number 
stored at seq */
+                               dprintf("   Related to seq %d\n", 
blockstart[13]);
+                       } else {
+                               subentry->data.date.second = 0;
+                       }
                        dprintf("   Date: %04u.%02u.%02u\n", 
subentry->data.date.year,
                                subentry->data.date.month, 
subentry->data.date.day);
                        dprintf("   Time: %02u:%02u:%02u\n", 
subentry->data.date.hour,

-----------------------------------------------------------------------

Summary of changes:
 common/nokia-decoding.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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