Fix rtc detection in Linux v5.11+ (see 211e5db1 in the kernel repo)
This commit is contained in:
parent
e90e150733
commit
654abe97e3
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue