Ver código fonte

Added bogus params parameter for invocations of Serials.GetPortParameters to make it compatible with changes from revision 7662

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7671 8c9fc860-2736-0410-a75d-ab315db34111
eth.negelef 7 anos atrás
pai
commit
f58791fcf9
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      source/ShellSerial.Mod

+ 4 - 4
source/ShellSerial.Mod

@@ -38,7 +38,7 @@ VAR
 PROCEDURE ModemReceive(context : Commands.Context; modemMode: LONGINT); (** [[filename] portNbr BitsPerSecond DataBits Parity StopBits] ~ *)
 PROCEDURE ModemReceive(context : Commands.Context; modemMode: LONGINT); (** [[filename] portNbr BitsPerSecond DataBits Parity StopBits] ~ *)
 VAR
 VAR
 	name : Files.FileName; file : Files.File;
 	name : Files.FileName; file : Files.File;
-	port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT;
+	port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT; params: SET;
 	isOpen0 : BOOLEAN;
 	isOpen0 : BOOLEAN;
 	bps0, data0, parity0, stop0 : LONGINT;
 	bps0, data0, parity0, stop0 : LONGINT;
 	recv : XYModem.Receiver; awaitF : BOOLEAN;
 	recv : XYModem.Receiver; awaitF : BOOLEAN;
@@ -52,7 +52,7 @@ BEGIN
 		RETURN;
 		RETURN;
 	END;
 	END;
 	
 	
-	Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, res);
+	Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, params, res);
 	IF res # 0 THEN
 	IF res # 0 THEN
 		context.result := 2;
 		context.result := 2;
 		context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
 		context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
@@ -235,11 +235,11 @@ END GetSerialPortParameters;*)
 (** Open a shell listening on the specified <portNbr> *)
 (** Open a shell listening on the specified <portNbr> *)
 PROCEDURE Open*(context : Commands.Context); (** [portNbr BitsPerSecond DataBits Parity StopBits Prompt] ~ *)
 PROCEDURE Open*(context : Commands.Context); (** [portNbr BitsPerSecond DataBits Parity StopBits Prompt] ~ *)
 VAR
 VAR
-	port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT;
+	port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT; params: SET;
 	prompt: ARRAY 32 OF CHAR;
 	prompt: ARRAY 32 OF CHAR;
 	w : Streams.Writer; r : Streams.Reader;
 	w : Streams.Writer; r : Streams.Reader;
 BEGIN {EXCLUSIVE}
 BEGIN {EXCLUSIVE}
-	Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, res);
+	Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, params, res);
 	IF res # 0 THEN
 	IF res # 0 THEN
 		context.result := 1;
 		context.result := 1;
 		context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
 		context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;