1
0
Fork 0
forked from forks/qmk_firmware

Fix pmw3360 code to only output debug info if mouse debugging is enabled (#13993)

This commit is contained in:
Drashna Jaelre 2021-08-13 14:20:47 -07:00 committed by GitHub
parent 7ed235d15d
commit 7ef4d0c886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,12 +213,14 @@ report_pmw_t pmw_read_burst(void) {
spi_stop(); spi_stop();
if (debug_mouse) {
print_byte(data.motion); print_byte(data.motion);
print_byte(data.dx); print_byte(data.dx);
print_byte(data.mdx); print_byte(data.mdx);
print_byte(data.dy); print_byte(data.dy);
print_byte(data.mdy); print_byte(data.mdy);
dprintf("\n"); dprintf("\n");
}
data.isMotion = (data.motion & 0x80) != 0; data.isMotion = (data.motion & 0x80) != 0;
data.isOnSurface = (data.motion & 0x08) == 0; data.isOnSurface = (data.motion & 0x08) == 0;