diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-10-07 12:02:01 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-11-23 14:38:13 +0200 |
| commit | 79e04b30e82273667785431e2d998e6e588f4c21 (patch) | |
| tree | b9cc8d242cd4e78797ab1201219453400b0fee0f /src/tmtspc/hid-tmtspc.c | |
| parent | 795aca4d9b9311bd04e92889d1545181d8917c73 (diff) | |
| download | hid-tmff2-79e04b30e82273667785431e2d998e6e588f4c21.tar.gz hid-tmff2-79e04b30e82273667785431e2d998e6e588f4c21.zip | |
correct tspc range to be 1080
Diffstat (limited to 'src/tmtspc/hid-tmtspc.c')
| -rw-r--r-- | src/tmtspc/hid-tmtspc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tmtspc/hid-tmtspc.c b/src/tmtspc/hid-tmtspc.c index 50b598c..a51ec01 100644 --- a/src/tmtspc/hid-tmtspc.c +++ b/src/tmtspc/hid-tmtspc.c @@ -173,9 +173,9 @@ static int tspc_set_range(void *data, uint16_t value) value = 140; } - if (value > 900) { + if (value > 1080) { hid_info(tspc->hdev, "value %i too large, clamping to 1080\n", value); - value = 900; + value = 1080; } return t300rs_set_range(data, value); @@ -327,7 +327,7 @@ int tspc_populate_api(struct tmff2_device_entry *tmff2) tmff2->set_gain = t300rs_set_gain; tmff2->set_autocenter = t300rs_set_autocenter; - /* TS-PC has 900 degree range, unlike T300RS 1080 */ + /* TS-PC has 1080 degree range, like T300RS 1080 */ tmff2->set_range = tspc_set_range; tmff2->wheel_fixup = tspc_wheel_fixup; |
