git-svn-id: https://spexeah.com:8443/svn/Asuro@587 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
1 parent
ff0bbb444c
commit
07f8dd5e4d
9 files changed
+19
-10
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+19
-10
@@ -372,18 +372,27 @@ begin
|
||||
end;
|
||||
|
||||
procedure SendSerial(Params : PParamList);
|
||||
var
|
||||
success : boolean;
|
||||
|
||||
begin
|
||||
success:= true;
|
||||
Serial.init(COM1);
|
||||
Serial.Send(uint8('H'), COM1, 100000);
|
||||
Serial.Send(uint8('E'), COM1, 100000);
|
||||
Serial.Send(uint8('L'), COM1, 100000);
|
||||
Serial.Send(uint8('L'), COM1, 100000);
|
||||
Serial.Send(uint8('O'), COM1, 100000);
|
||||
Serial.Send(uint8('W'), COM1, 100000);
|
||||
Serial.Send(uint8('O'), COM1, 100000);
|
||||
Serial.Send(uint8('R'), COM1, 100000);
|
||||
Serial.Send(uint8('L'), COM1, 100000);
|
||||
Serial.Send(uint8('D'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('H'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('E'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('L'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('L'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('O'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('W'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('O'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('R'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('L'), COM1, 100000);
|
||||
success:= success AND Serial.Send(uint8('D'), COM1, 100000);
|
||||
if success then begin
|
||||
console.writestringlnWND('Send Success!', TERMINAL_HWND);
|
||||
end else begin
|
||||
console.writestringlnWND('Send Failed!', TERMINAL_HWND);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure init;
|
||||
|
||||
Reference in new issue
Block a user