Модуль "P2KApi" (часть 54) - TP2KAPI.FlashCmd3

Рубрика: Исходники
Среда, 21 апреля 2010 г.
Просмотров: 155
последняя версия: 3.0.9 build 961 beta
от 07 декабря 2007 г.
function TP2KAPI.FlashCmd3(Acmd: shortstring): shortstring;
var
  cmd: string;
  Cmd_temp: array[0..255] of char;
  i: byte;
  tmp: string;
  Cmd_Ans: array[0..1023] of char;
  xx: dword;

begin
  result:= '';
  cmd:= ACmd;
  if not TelStatus then exit;
  i:=0;
  repeat
    cmd_temp[i]:= cmd[i+1];
    i:=i+1;
  //until i = length(cmd)+1;
  until i = length(cmd);
  //USB_WriteDataEx(@Cmd_temp, i+1, 2,6000);
  USB_WriteDataEx(@Cmd_temp, i, 2,xFlashTimeOut);
end;
Rambler's Top100