[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-36
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-360-ga3c0855 |
Date: |
Fri, 24 Feb 2012 17:32:24 +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 a3c085567e1e9894ec6a55cdd3a0460c8b884fcc (commit)
from 6c3e7490c8004d19173f528bcaa473aa6a894588 (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=a3c085567e1e9894ec6a55cdd3a0460c8b884fcc
commit a3c085567e1e9894ec6a55cdd3a0460c8b884fcc
Author: Daniele Forsi <address@hidden>
Date: Fri Feb 24 18:25:20 2012 +0100
Fix decoding of GN_PHONEBOOK_ENTRY_Location number
It is used only for debugging.
Maximum value is 0x3e8 (1000) on S40 3rd.
diff --git a/common/nokia-decoding.c b/common/nokia-decoding.c
index bdaa8b1..5e5b6e4 100644
--- a/common/nokia-decoding.c
+++ b/common/nokia-decoding.c
@@ -104,7 +104,8 @@ gn_error phonebook_decode(unsigned char *blockstart, int
length, gn_data *data,
}
break;
case GN_PHONEBOOK_ENTRY_Location:
- dprintf("Location: %d\n", blockstart[7]);
+ /* msb is always set on S40 3rd */
+ dprintf("Location: %d\n", ((blockstart[6] & 0x7f) << 8)
+ blockstart[7]);
break;
case GN_PHONEBOOK_ENTRY_Image:
dprintf("Image\n");
-----------------------------------------------------------------------
Summary of changes:
common/nokia-decoding.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-360-ga3c0855,
Daniele Forsi <=