Browse Source

Fix rtc detection in Linux v5.11+ (see 211e5db1 in the kernel repo)

Fabian 2 years ago
parent
commit
654abe97e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rtc.js

+ 1 - 1
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);