Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-23 18:23:38 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-23 18:23:38 +0300
commit329a308e53ec35607008fb1cf2302645fc8ce083 (patch)
treea4699aa7c6fd103d56aefc361ec34da0480a04b6 /clovercon
parentc264acf691459b7416bc275c5b28ac0cd30143c4 (diff)
Support for ultra shitty pro controller clones which will work only after hardware modification (2.2K pull-up resistor on SCL and SDA)
Diffstat (limited to 'clovercon')
-rw-r--r--clovercon/clovercon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clovercon/clovercon.c b/clovercon/clovercon.c
index 0a87c1ad..ef3f90d0 100644
--- a/clovercon/clovercon.c
+++ b/clovercon/clovercon.c
@@ -560,6 +560,9 @@ static void clovercon_poll(struct input_polled_dev *polled_dev) {
*
* Use that as last resort discarding criteria */
jy = 0;
+ data[18] = 0; // for ultra shitty pro controller clones
+ // which will work only after hardware
+ // modification (2.2K pull-up resistor on SCL and SDA)
for (jx=8; jx<21; jx++) {
if (data[jx] == 0xFF) data[jx] = 0; // for 3rd party controllers
jy += data[jx];