gnokii-users
[Top][All Lists]
Advanced

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

Every day it's worse... :(


From: Michal Kochanowicz
Subject: Every day it's worse... :(
Date: Wed, 3 Apr 2002 17:17:57 +0200
User-agent: Mutt/1.3.28i

Hi

I've complained about gnokii giving empty contacts window. Today it
works much slower and doesn't even try to read the phone. It simply
displays error window saying that "Can't get SM memory status!\nSetting
max SIM entries to 100!"

It also gives some combination of follwing messages:
Event 0 failed with return code 4!
xgnokii_lowlevel.c: line 491: Can't get memory entry number 1 from memory 1! 4
Event 2 failed with return code 4!

It is repeatable.

I'm using current CVS + follwing patch from Mark Plail:
diff -u -r1.47 gsm-sms.c
--- gnokii/common/gsm-sms.c     3 Apr 2002 01:02:06 -0000       1.47
+++ gnokii/common/gsm-sms.c     3 Apr 2002 14:52:17 -0000
@@ -1088,6 +1088,24 @@
                }
        }
 
+       /* Remote number */
+       if (llayout.RemoteNumber > -1) {
+               if (llayout.IsRemoteNumberCoded) {
+                       if (message[llayout.RemoteNumber] == 0x00) 
llayout.MessageCenter -= 4;
+                               /* FIXME Is this an ugly hack or correct? */
+                               /* at least it works with 6210, 6510 and 6110 
with the message I tested */
+                       message[llayout.RemoteNumber] = 
(message[llayout.RemoteNumber] + 1) / 2 + 1;
+                       strcpy(SMS->RemoteNumber.number, GetBCDNumber(message + 
llayout.RemoteNumber));
+                       dprintf("\tRemote number (recipient or sender): %s\n", 
SMS->RemoteNumber.number);
+               } else {
+                       /* SMS struct should be zeroed for now, so there's no
+                        * need to add an extra '\0' at the end of the string */
+                       strncpy(SMS->RemoteNumber.number,
+                               message + 1 + llayout.RemoteNumber,
+                               message[llayout.RemoteNumber] < 
GSM_MAX_SMS_CENTER_LENGTH ? message[llayout.RemoteNumber] : 
GSM_MAX_SMS_CENTER_LENGTH);
+               }
+       }
+
        /* Short Message Center */
        if (llayout.MessageCenter > -1) {
                if (llayout.IsMessageCenterCoded) {
-- 
--= Michal address@hidden =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!



reply via email to

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