From 675b1750573c57f79ac061c4e0158c0891698af8 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sun, 18 Feb 2018 12:31:00 +0800 Subject: [PATCH] Guard reset bit. --- user_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user_io.c b/user_io.c index 0760c78..1ada6a2 100644 --- a/user_io.c +++ b/user_io.c @@ -411,7 +411,8 @@ void user_io_init() if (FileLoadConfig(name, &status, 4)) { printf("Found config\n"); - user_io_8bit_set_status(status, 0xffffffff); + status &= ~UIO_STATUS_RESET; + user_io_8bit_set_status(status, 0xffffffff & ~UIO_STATUS_RESET); } parse_config();