From 654abe97e37fce58d0e30a7db8a18d2ec05d2133 Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 11 Feb 2022 17:51:12 +0100 Subject: [PATCH] Fix rtc detection in Linux v5.11+ (see 211e5db1 in the kernel repo) --- src/rtc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtc.js b/src/rtc.js index 772866aa..ce44c9a3 100644 --- a/src/rtc.js +++ b/src/rtc.js @@ -264,7 +264,7 @@ RTC.prototype.cmos_port_read = function() return c; case CMOS_STATUS_D: - return 0xFF; + return 0; case CMOS_CENTURY: return this.encode_time(new Date(this.rtc_time).getUTCFullYear() / 100 | 0);