/[gnokii]/gnokii/common/phones/nk6510.c
ViewVC logotype

Diff of /gnokii/common/phones/nk6510.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.173 by pkot, Sun May 8 21:28:32 2005 UTC revision 1.174 by pkot, Sun May 8 22:23:31 2005 UTC
# Line 1819  static gn_error NK6510_IncomingPhonebook Line 1819  static gn_error NK6510_IncomingPhonebook
1819                                  dprintf("Memory status - location = %d, Capacity: %d \n",                                  dprintf("Memory status - location = %d, Capacity: %d \n",
1820                                          (message[4] << 8) + message[5], (message[18] << 8) + message[19]);                                          (message[4] << 8) + message[5], (message[18] << 8) + message[19]);
1821                          } else {                          } else {
1822                                  dprintf("Unknown error getting mem status\n");                                  return GN_ERR_INVALIDMEMORYTYPE;
                                 return GN_ERR_NOTIMPLEMENTED;  
1823                          }                          }
1824                  }                  }
1825                  break;                  break;
# Line 1864  static gn_error NK6510_IncomingPhonebook Line 1863  static gn_error NK6510_IncomingPhonebook
1863                                  return GN_ERR_EMPTYLOCATION;                                  return GN_ERR_EMPTYLOCATION;
1864                          case 0x34:                          case 0x34:
1865                                  return GN_ERR_INVALIDLOCATION;                                  return GN_ERR_INVALIDLOCATION;
1866                            case 0x31:
1867                                    return GN_ERR_INVALIDMEMORYTYPE;
1868                          default:                          default:
1869                                  return GN_ERR_UNKNOWN;                                  return GN_ERR_UNKNOWN;
1870                          }                          }
# Line 1897  static gn_error NK6510_IncomingPhonebook Line 1898  static gn_error NK6510_IncomingPhonebook
1898                  }                  }
1899                  break;                  break;
1900          default:          default:
1901                  dprintf("Unknown subtype of type 0x03 (%d)\n", message[3]);                  dprintf("Unknown subtype of type 0x03 (0x%02x)\n", message[3]);
1902                  return GN_ERR_UNHANDLEDFRAME;                  return GN_ERR_UNHANDLEDFRAME;
1903          }          }
1904          return GN_ERR_NONE;          return GN_ERR_NONE;
# Line 3768  static gn_error NK6510_IncomingCommStatu Line 3769  static gn_error NK6510_IncomingCommStatu
3769                  ca = data->call_active;                  ca = data->call_active;
3770                  memset(ca, 0x00, 2 * sizeof(gn_call_active));                  memset(ca, 0x00, 2 * sizeof(gn_call_active));
3771                  for (i = 0; i < message[4]; i++) {                  for (i = 0; i < message[4]; i++) {
3772                          if (pos[0] != 0x64) return GN_ERR_UNHANDLEDFRAME;                          if (pos[0] != 0x64)
3773                                    return GN_ERR_UNHANDLEDFRAME;
3774                          ca[i].call_id = pos[2];                          ca[i].call_id = pos[2];
3775                          ca[i].channel = pos[3];                          ca[i].channel = pos[3];
3776                          switch (pos[4]) {                          switch (pos[4]) {
# Line 3842  static gn_error NK6510_IncomingCommStatu Line 3844  static gn_error NK6510_IncomingCommStatu
3844                  dprintf("Cause ID: %i\n", message[6]);                  dprintf("Cause ID: %i\n", message[6]);
3845                  return GN_ERR_UNKNOWN;                  return GN_ERR_UNKNOWN;
3846    
3847            case 0xf0:
3848                    return GN_ERR_UNHANDLEDFRAME;
3849    
3850          default:          default:
3851                  dprintf("Unknown subtype of type 0x01 (%d)\n", message[3]);                  dprintf("Unknown subtype of type 0x01 (0x%02x)\n", message[3]);
3852                  return GN_ERR_UNHANDLEDFRAME;                  return GN_ERR_UNHANDLEDFRAME;
3853          }          }
3854          return GN_ERR_NONE;          return GN_ERR_NONE;

Legend:
Removed from v.1.173  
changed lines
  Added in v.1.174

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26