]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix Pointing Device code (#1934)
authordrashna <drashna@live.com>
Tue, 31 Oct 2017 15:13:00 +0000 (08:13 -0700)
committerJack Humbert <jack.humb@gmail.com>
Tue, 31 Oct 2017 15:13:00 +0000 (11:13 -0400)
* Fix pointer device options

when the feature was added, the appropriate option definition wasn't created.  This needs to be added to function properly.

* Update common_features.mk

* missing underscore in init function declaration

common_features.mk
quantum/pointing_device.h

index a7c366a109483b24e2d7c93695b7e2ca7198ec34..3c77f588edecdc816dfe275d94f64e3ac9ae1456 100644 (file)
@@ -70,7 +70,8 @@ ifeq ($(strip $(FAUXCLICKY_ENABLE)), yes)
 endif
 
 ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
 endif
 
 ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
-       SRC += $(QUANTUM_DIR)/pointing_device.c
+    OPT_DEFS += -DPOINTING_DEVICE_ENABLE
+    SRC += $(QUANTUM_DIR)/pointing_device.c
 endif
 
 ifeq ($(strip $(UCIS_ENABLE)), yes)
 endif
 
 ifeq ($(strip $(UCIS_ENABLE)), yes)
index 40d71f7419d89439e106d95e4751138852b7c265..1944d820659ba491aee5db518861c0270481cef7 100644 (file)
@@ -22,7 +22,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "host.h"
 #include "report.h"
 
 #include "host.h"
 #include "report.h"
 
-void pointingdevice_init(void);
+void pointing_device_init(void);
 void pointing_device_task(void);
 void pointing_device_send(void);
 report_mouse_t pointing_device_get_report(void);
 void pointing_device_task(void);
 void pointing_device_send(void);
 report_mouse_t pointing_device_get_report(void);