Selaa lähdekoodia

forgot to assign res to 0

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7986 8c9fc860-2736-0410-a75d-ab315db34111
eth.morozova 7 vuotta sitten
vanhempi
commit
43eddc9112
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      ARM/ARM.A2/Zynq.PsUart.Mod

+ 3 - 2
ARM/ARM.A2/Zynq.PsUart.Mod

@@ -251,7 +251,8 @@ VAR
 		uart.regs.ier := (RxDataInterrupts+RxErrorInterrupts+TxErrorInterrupts);
 
 		UartMin.Enable(uart.regs,TRUE);
-
+		
+		res := 0;
 		uart.open := TRUE;
 	END Open;
 
@@ -433,7 +434,7 @@ VAR
 	BEGIN
 		IF ~uart.open THEN res := UartMin.Closed; RETURN; END;
 
-		res := UartMin.Ok;
+		res := 0;
 		len := 0;
 
 		IF size = 0 THEN RETURN; END;