summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-03-08 04:17:05 +0000
committerQMK Bot <hello@qmk.fm>2022-03-08 04:17:05 +0000
commite71f8f89d291095b7916a0f78181f3a06a0b929d (patch)
treebfa703e5bc77676e2be9808d6e05907fea0b9714 /quantum
parentb5996bf7939ec1af9f9f23a6c645b288748926fb (diff)
parent0880850b158ca5da4eae28c43849909c01350f0f (diff)
downloadqmk_firmware-e71f8f89d291095b7916a0f78181f3a06a0b929d.tar.gz
qmk_firmware-e71f8f89d291095b7916a0f78181f3a06a0b929d.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-rw-r--r--quantum/pointing_device.c14
-rw-r--r--quantum/pointing_device.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/quantum/pointing_device.c b/quantum/pointing_device.c
index 9627cab4b8..47a0af45d2 100644
--- a/quantum/pointing_device.c
+++ b/quantum/pointing_device.c
@@ -73,12 +73,12 @@ extern const pointing_device_driver_t pointing_device_driver;
/**
* @brief Compares 2 mouse reports for difference and returns result
*
- * @param[in] new report_mouse_t
- * @param[in] old report_mouse_t
+ * @param[in] new_report report_mouse_t
+ * @param[in] old_report report_mouse_t
* @return bool result
*/
-__attribute__((weak)) bool has_mouse_report_changed(report_mouse_t new, report_mouse_t old) {
- return memcmp(&new, &old, sizeof(new));
+__attribute__((weak)) bool has_mouse_report_changed(report_mouse_t new_report, report_mouse_t old_report) {
+ return memcmp(&new_report, &old_report, sizeof(new_report));
}
/**
@@ -292,10 +292,10 @@ report_mouse_t pointing_device_get_report(void) {
/**
* @brief Sets mouse report used be pointing device task
*
- * @param[in] new_mouse_report
+ * @param[in] mouse_report
*/
-void pointing_device_set_report(report_mouse_t new_mouse_report) {
- local_mouse_report = new_mouse_report;
+void pointing_device_set_report(report_mouse_t mouse_report) {
+ local_mouse_report = mouse_report;
}
/**
diff --git a/quantum/pointing_device.h b/quantum/pointing_device.h
index 5f3845227a..a6bdbf120c 100644
--- a/quantum/pointing_device.h
+++ b/quantum/pointing_device.h
@@ -79,8 +79,8 @@ 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_set_report(report_mouse_t newMouseReport);
-bool has_mouse_report_changed(report_mouse_t new, report_mouse_t old);
+void pointing_device_set_report(report_mouse_t mouse_report);
+bool has_mouse_report_changed(report_mouse_t new_report, report_mouse_t old_report);
uint16_t pointing_device_get_cpi(void);
void pointing_device_set_cpi(uint16_t cpi);