/[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.169 by pkot, Tue May 3 22:13:21 2005 UTC revision 1.170 by pkot, Tue May 3 22:58:44 2005 UTC
# Line 1613  static gn_error NK6510_GetFile(gn_data * Line 1613  static gn_error NK6510_GetFile(gn_data *
1613    
1614          /* Get the data */          /* Get the data */
1615          while (data->file->togo>0) {          while (data->file->togo>0) {
1616                    int progress;
1617                    
1618                  i = data->file->file_length-data->file->togo;                  i = data->file->file_length-data->file->togo;
1619                  req3[11] = (i&0xff0000)>>16;                  req3[11] = (i&0xff0000)>>16;
1620                  req3[12] = (i&0xff00)>>8;                  req3[12] = (i&0xff00)>>8;
# Line 1627  static gn_error NK6510_GetFile(gn_data * Line 1629  static gn_error NK6510_GetFile(gn_data *
1629                  if (sm_message_send(sizeof(req3), NK6510_MSG_FILE, req3, state)) return GN_ERR_NOTREADY;                  if (sm_message_send(sizeof(req3), NK6510_MSG_FILE, req3, state)) return GN_ERR_NOTREADY;
1630                  err = sm_block(NK6510_MSG_FILE, data, state);                  err = sm_block(NK6510_MSG_FILE, data, state);
1631                  if (err!=GN_ERR_NONE) return err;                  if (err!=GN_ERR_NONE) return err;
1632                    progress = 100 * (data->file->file_length - data->file->togo) / data->file->file_length;
1633                    fprintf(stderr, _("Progress: %d%% completed\n"), progress);
1634          }          }
1635                    
1636          /* Finish the transfer */          /* Finish the transfer */

Legend:
Removed from v.1.169  
changed lines
  Added in v.1.170

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