aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_io.c
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-12 18:13:45 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-12 18:13:45 -0700
commit6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1 (patch)
treeb3f0745f41dec7531aabc9c5a3a73dca869fc84f /firmware/microblaze/lib/hal_io.c
parente2fcb815141b05205ea9334e2db78f9ceffa62c3 (diff)
downloaduhd-6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1.tar.gz
uhd-6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1.tar.bz2
uhd-6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1.zip
Fixed GPS UART stuff. Works OK.
Diffstat (limited to 'firmware/microblaze/lib/hal_io.c')
-rw-r--r--firmware/microblaze/lib/hal_io.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/microblaze/lib/hal_io.c b/firmware/microblaze/lib/hal_io.c
index 549990311..18cc34aaf 100644
--- a/firmware/microblaze/lib/hal_io.c
+++ b/firmware/microblaze/lib/hal_io.c
@@ -208,11 +208,9 @@ fputstr(hal_uart_name_t u, const char *s)
int
fnputstr(hal_uart_name_t u, const char *s, int len)
{
- int x;
- while (*s && (len > x)) {
+ int x = 0;
+ while (*s && (len > x++))
fputchar(u, *s++);
- x++;
- }
return x;
}