From 36821c2fc8bf4d450e117d5af308015e7a69f0c0 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 30 Jul 2021 06:27:21 +0200 Subject: [PATCH] Small VIA NVR fix. --- src/nvr_at.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvr_at.c b/src/nvr_at.c index 733eac250..bf188dbbf 100644 --- a/src/nvr_at.c +++ b/src/nvr_at.c @@ -604,7 +604,7 @@ nvr_reg_write(uint16_t reg, uint8_t val, void *priv) /*FALLTHROUGH*/ case 0x32: - if ((local->cent == RTC_CENTURY_VIA) && local->wp_32) + if ((reg == 0x32) && (local->cent == RTC_CENTURY_VIA) && local->wp_32) break; /* FALLTHROUGH */