mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Restrict fan-curve copy to "v1" profile devices only
This commit is contained in:
parent
4903b89239
commit
bd56c1ecb9
|
@ -811,11 +811,13 @@ static int uniwill_keyboard_probe(struct platform_device *dev)
|
|||
// uw_ec_write_addr(0x51, 0x07, 0x00, 0x00, ®_write_return);
|
||||
uniwill_write_ec_ram(0x0751, 0x00);
|
||||
|
||||
// Set manual-mode fan-curve in 0x0743 - 0x0747
|
||||
// Some kind of default fan-curve is stored in 0x0786 - 0x078a: Using it to initialize manual-mode fan-curve
|
||||
for (i = 0; i < 5; ++i) {
|
||||
uniwill_read_ec_ram(0x0786 + i, &data);
|
||||
uniwill_write_ec_ram(0x0743 + i, data);
|
||||
if (uw_feats->uniwill_profile_v1) {
|
||||
// Set manual-mode fan-curve in 0x0743 - 0x0747
|
||||
// Some kind of default fan-curve is stored in 0x0786 - 0x078a: Using it to initialize manual-mode fan-curve
|
||||
for (i = 0; i < 5; ++i) {
|
||||
uniwill_read_ec_ram(0x0786 + i, &data);
|
||||
uniwill_write_ec_ram(0x0743 + i, data);
|
||||
}
|
||||
}
|
||||
|
||||
// Enable manual mode
|
||||
|
|
Loading…
Reference in a new issue