From: hadaq Date: Tue, 10 Nov 2009 20:43:49 +0000 (+0000) Subject: com_reset bug again X-Git-Tag: v6.0~303 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=533f98a03b9ef9e48184719a3471c0b7a4223f31;p=trbnettools.git com_reset bug again --- diff --git a/libtrbnet/trbnet.c b/libtrbnet/trbnet.c index 74215d8..345a912 100644 --- a/libtrbnet/trbnet.c +++ b/libtrbnet/trbnet.c @@ -1,4 +1,4 @@ -const char trbnet_version[] = "$Revision: 2.53 $"; +const char trbnet_version[] = "$Revision: 2.54 $"; #include #include @@ -1041,12 +1041,12 @@ int init_ports() /* write: portC[17-0] */ *GPIOC_OE_OFFSET = GPIOC_OE_PINS; - - /* Reset Ports */ - setbitsPC(0x30000); - clrbitsPC(0x30000); } + /* Reset Ports */ + setbitsPC(0x30000); + clrbitsPC(0x30000); + if (unlockPorts() == -1) return -1; return 0;