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

This commit is contained in:
Fabian 2022-02-11 17:51:12 +01:00
parent e90e150733
commit 654abe97e3

View file

@ -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);