Ticket #599 (closed enhancement: fixed)

Opened 13 months ago

Last modified 13 months ago

V3 support patch

Reported by: andrewb Owned by: andrewb
Priority: normal Milestone: 0.40
Component: Plugin: moto Version: 0.33
Severity: normal Keywords:
Cc:

Description

From: Maduser <Maduser@gmx.de>
To: opensync-devel@lists.sourceforge.net
Subject: Re: [Opensync-devel] motosync and V3
 
--- motosync.py.org     2007-10-07 14:38:01.000000000 +0200
+++ motosync.py 2007-10-07 14:45:28.000000000 +0200
@@ -806,6 +806,8 @@
         
         self.__do_cmd('ATE0Q0V1')  # echo off, result codes off, verbose results
 
+        self.model = read_model()
+
         # find out if calendar locking is required/supported by this phone
         try:
             self.__do_cmd('AT+MDBL=0')
@@ -1024,6 +1026,9 @@
         for n in [1, 23]:
             if len(data) > n and type(data[n]) == types.UnicodeType:
                 data[n] = data[n].encode('ascii')
+        # the V3 only takes 16 parameters (no address)
+        if self.model=='V3':
+            data = data[:16]
         self.__do_cmd('AT+MPBW=' + self.__to_cmd_str(data))
 
     def delete_contact(self, pos):

Change History

Changed 13 months ago by andrewb

  • status changed from new to closed
  • resolution set to fixed

applied as r2735

Note: See TracTickets for help on using tickets.